What is the difference between the 5`s in these two expressions? int num[5]; num[5];
Unions are different than structures in that
What is the output of the following code?
#include
void main()
{
int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }};
printf(“\n%d”,**(*arr+1)+2+7);
}
Recursive Functions
What is the output of the following code?
#include
main()
{
void swap();
int x=10, y=8;
swap(&x, &y);
printf(“x=%d y=%d”,x,y);
}
void swap(int *a, int *b)
{
*a ^= *b, *b ^= *a, *a ^= *b;
}
I have a function extern int f(int *); which accepts a pointer to an int. How can I pass a constant by reference?
The break statement is used to exit from:
What is the output of the following code?
#include
void main()
{
int s=0;
while(s++<10)
{
if(s<4 && s<9)
continue;
printf("\n%d\t",s);
}
}
What is the output of the following code?
#include
void main()
{
int a = 0;
printf(“\n %d\t”, (a = 10/a));
}
What is the output of the following code?
#include
void main()
{
char str1[]=”India”, str2[]=”India”;
if(str1==str2)
printf(“\nBoth the string are same”);
else
printf(“\nBoth the string are not same”);
}