C Programming Array's Multiple Choice Questions And Answers
Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:
List of Programming Full Forms
#include‹stdio.h›
int main()
{
struct site
{
char name[] = "GeeksforGeeks";
int no_of_pages = 200;
};
struct site *ptr;
printf("%d",ptr->no_of_pages);
printf("%s",ptr->name);
getchar();
return 0;
}
- GeeksforGeeks
- Compilation Error
- Runtime Error
- Geeks
- It is a declaratrion
- Initialization is a part of definition
- It is a formal parameter
- All the above
- compiler dependent
- Only 2
- Only 3
- Only 4
int *a1[8];
int *(a2[8]);
- Array of pointers
- Pointer to an array
- a1 is A, a2 is B
- a1 is B, a2 is A
- a1 is A, a2 is A
- a1 is B, a2 is B