Question

Which of the following is a correct way to declare and initialize a pointer to an integer in C?

A 'int *p = 10;'
B 'int p = &value;'
C 'int *p = &value;' (assuming 'int value;' is declared)
D '*p = &value;'
E 'int *p; p = value;'
Practice Next

Hey! Ask a query