ADITI
Company
Programming
Program
Q. What is the memory allocated by the following definition ?
int (*x)[10];
Read Solution (Total 1)
i think 11
10 years ago
Helpfull: Yes(0) No(0)
ADITI Other Question
Q. What is the output of the following program
#include
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}
Q. In the following program segment
#include
main()
{
int a=2;
int b=9;
int c=1;
while(b)
{
if(odd(b))
c=c*a;
a=a*a;
b=b/2;
}
printf("%dn",c);
}
How many times is c=c*a calculated?