Programming MCQS - QUESTION DETAILS

How do you declare a pointer in C?
A. int* ptr;
B. pointer ptr;
C. *ptr int;
D. ptr* int;

Syntax for declaring a pointer: type *variable_name;

Similar Questions

What is the purpose of the 'malloc' function in C?






What is the purpose of the 'rand' function in C?






How is a preprocessor directive indicated in C?






How do you declare a constant pointer in C?






Which function is used to compare two strings in C?






What is the output of printf("%d", ~5);?






What is the purpose of the 'do-while' loop in C?






What is the output of printf("%c", 65);?






What is the output of printf("%f", 10 / 3);?






How do you declare a global variable in C?