adplus-dvertising
frame-decoration

Question

Prior to using a pointer variable it should be

a.

Declared

b.

Initialized

c.

Both declared and initalized

d.

None of these

Answer: (c).Both declared and initalized

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Prior to using a pointer variable it should be

Similar Questions

Discover Related MCQs

Q. Consider the declaration:

char x[]="WHATIZIT";
char *y="WHATIZIT
";
The output of puts(x) an puts(y) will be

Q. Consider the declarations:

char first (int(*)(char,float));
int second(char,float);

Which of the following function invocation is valid?

Q. In C a pointer variable to an integer can be created by the decalaration

Q. Which of the following is most appropriate?

Q. A pointer variable can be

Q. a→b is syntactically correct if

Q. The statement 

 if ( myPtr != NULL )
         *myPtr = NULL;
else
         *myPtr = NULL;

has the same effect as the statements(s)

Q. Consider the following program fragment.
static char wer[3][4] = {"bag", "let", "bud"};
char(*ptr)[4] = wer;
The possible output of printf ( "%d %d", wer, wer +1); is

Q. The operators > and < are meaningful when used with pointers, if

Q. Choose the best answer. Prior to using a pointer variable

Q. Consider the two declarations

void *voidPtr;
char *charPtr;

Which of the following assignments are syntactically correct?

Q. Which of the following operators can be applied to pointer variable(s)?

Q. Pick the correct answers.
If x is an one dimensional array, then

Q. Let x be an array. Which of the following cannot be present in the left hand side of an assignment statement?

Q. Consider the declarations:

char first (int (*) (char, float)) ;
int second(char, float);

Which of the following function invocation is valid?

Q. A function q that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as

Q. If func is a function needing three arguments a1, a2,  a3 then func can be invoked by

Q. The declaration
int (*p) [5];
means

Q. Consider the declaration

int a = 5, *b = &a;

The statement
printf("%d", a * b);
prints

Q. calloc(m, n); is equivalent to