In C, when passing arrays to functions, what is actually passed?
What will be the output of: int a = 5; int *p = &a; printf("%d %d", a, *p);?
What does the static keyword do when used with a global variable?
Consider: int arr[10]; int *p = arr; What is p[5] equivalent to?
What is the difference between declaration and definition in C?
Advertisement
What will be the output of: int x = 10; int y = x++ + ++x; printf("%d", y);
Consider a complex expression: int x = 2 + 3 * 4 - 25; What is x?
What happens if you declare a variable but don't initialize it in C?
Consider: int *ptr = NULL; *ptr = 5; What will happen?
What does the 'volatile' keyword indicate in C?
Consider: int *ptr; int arr[] = {1,2,3}; ptr = arr; What is ptr[1]?
What is the difference between getchar() and scanf("%c", &ch); in C?
What will be the output: int a = 2, b = 3; printf("%d", a * b + a / b);
Which of the following correctly describes the relationship between arrays and pointers in C?
What is the difference between a function declaration and a function definition in C?
Which of the following is the correct way to declare a pointer to a function that returns an int and takes two int parameters?
Consider: int *p, q; What is the type of q?
What is printed by: char s[] = "hello"; printf("%zu", sizeof(s));?
What will be the result of: 5 % 2 * 23?
In a struct, how is memory allocated for union members?