Predict the output of following “C” code:

			  		

Loading

Practice Basic Concept – Predict the output of following “C” code:


void main()
{
if( printf(""))
printf("Face");
else
printf("Focus");
}

Predict the output of following “C” code:

			  		

Loading

Practice Control Instructions – Predict the output of following “C” code:


void main()
{
int a,x=2,3,4,5;
a=1,2,3,4,5;
printf("%d%d",x,a);
}

What will be output of the following “C” code?

Loading

Practice Expressions – What will be output of the following “C” code?


#include
void main()
{
int a=10,x=20;a=a++ + 10;
x=x++ + ++a;
printf("%d,%d",a,x);
}

What will happen if in a C program you assign a value to an array elem

Loading

Practice Arrays – What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

Is there any difference int the following declarations?

i

Loading

Practice Functions – Is there any difference int the following declarations?

int fun(int arr[]);
int fun(int arr[2]);

Predict the output of following “C” code:

			  		

Loading

Practice Control Instructions – Predict the output of following “C” code:


void main()
{
if(5,4,3,2,1,? 0 ? )
printf("True");
else
printf("False");
}

Predict the output of following “C” code:

			  		

Loading

Practice Control Instructions – Predict the output of following “C” code:


#include
void main()
{
int a,x=(2,3,4,5);
a=1,2,3,4,5;
printf("%d,%d",x,a);
}

What is the output for following?

			  		

Loading

Practice Basic Concept – What is the output for following?


void main()
{
printf("%%%%");
}

Predict the output of following “C” code:

			  		

Loading

Practice Basic Concept – Predict the output of following “C” code:


main()
{
int var=20;
printf("%d,",var);
{
int var=30;
printf("%d",var);
}
}

What will be output of the following “c” code?

Loading

Practice Functions – What will be output of the following “c” code?


#include
int main(){
int i=3,val;
val=sizeof (f(i)+ +f(i=1)+ +f(i-1));
printf("%d %d",val,i);
return 0;
}
int f(int num){
return num*5;
}

Predict the output of following “C” code:

			  		

Loading

Practice Expressions – Predict the output of following “C” code:


#include
void main()
{
int a=10,x;
x= a-- + ++a;
printf("%d",x);
}