Questions tagged [null]

The tag has no usage guidance.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
54 views

Small question with how NULL works

this is just a small question on NULL. In the snippet below, why doesn't the do-while loop repeat when I don't enter anything for the string? #include <stdio.h> #include <string.h> #...
0
votes
0answers
65 views

Initializing a variable in a struct, then in a function

It won't allow me to initialize the array to NULL in the struct in the header file: typedef struct frog { bool is_frog; struct frog* french_chef[10]; // eg = {NULL}; } frog; which I get, but ...
0
votes
1answer
109 views

String validity check when string is command line argument?

We check the string validity when we use the get_string() function. Example: if (p != NULL) Are we also supposed to check string validity when the string is entered as a command line argument?