Question 1
int (*p)[5];
Question 2
Assuming int size is 4 bytes, what is going to happen when we compile and run the following program?
#include âstdio.hâ
int main()
{
printf(âGeeksQuiz\\nâ);
main();
return 0;
}
We canât use main() inside main() and compiler will catch it by showing compiler error.
GeeksQuiz would be printed in 2147483647 times i.e. (2 to the power 31) - 1.
Itâll print GeeksQuiz infinite times i.e. the program will continue to run forever until itâs terminated by other means such as CTRL+C or CTRL+Z etc.
GeeksQuiz would be printed only once. Because when main() is used inside main(), itâs ignored by compiler at run time. This is to make sure that main() is called only once.
GeeksQuiz would be printed until stack overflow happens for this program.
Question 3
typedef int INT, *INTPTR, ONEDARR[10], TWODARR[10][10];
Question 4
float x = 2.17;
double y = 2.17;
long double z = 2.17;
Question 5
There are 5 questions to complete.