6 items

    C Programming Quiz

    Test your knowledge of C programming with this quiz. Explore questions related to variables, functions, and pointers in the C programming language.

    What is the purpose of a pointer in C?

    What is the output of the following C code? #include <stdio.h> int main() { int x = 10; int *ptr = &x; printf("%d", *ptr); return 0; }

    What is the output of the following C code? #include <stdio.h> int main() { int x = 5; int *ptr = &x; printf("%d", *ptr); return 0; }

    Which of the following is not a valid data type in C?

    What is the output of the following C code? #include <stdio.h> int main() { int x = 5; int *ptr = &x; printf("%d", *ptr); return 0; }

    What is the keyword used to declare a variable in C?