What will be the output of the following program.

Loading

Practice Declarations and Initializations – What will be the output of the following program.


#include
int main() {
int i,j;
j = 10;
i = j++ - j++;
printf("%d %d", i,j);
return 0;
}

What is the output of the following problem ?

			  		

Loading

Practice Declarations and Initializations – What is the output of the following problem ?


#include
int main()
{
int i=4;
if(i=0)
printf("statement 1");
else
printf("statement 2");
return 0;
}

What will be output of following c program?

			  		

Loading

Practice Declarations and Initializations – What will be output of following c program?


#include
long unsigned static const ddlg(){
static const long unsigned a=0101;
return a;
}
int main(){
long number;
number=ddlg();
printf("%X",number);
return 0;
}

Which is the valid declaration?

Loading

Practice Declarations and Initializations – Which is the valid declaration?

What is the problem in the following declarations?

Loading

Practice Declarations and Initializations – What is the problem in the following declarations?


int func(int);
double func(int);
int func(float);

What is the output of the following code?

			  		

Loading

Practice Declarations and Initializations – What is the output of the following code?


include
void main()
{
int a=0, b=0;
a = (b =75)+9;
printf("
%d, %d ",a,b);
}

A declaration “short int” is used for variables

Loading

Practice Declarations and Initializations – A declaration “short int” is used for variables

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

Loading

Practice Declarations and Initializations – What will be output of the following “c” code?


#include
void main ( )
{
int i, m=2, n=3;
for( i=0;m+n=5; m++)
printf("%d %d", m,n);
}

What is the output of the following program?


Loading

Practice Declarations and Initializations – What is the output of the following program?


void main()

{

int x,y, z;

x=2; y=1; z = 1;

if(x > y + z)

printf("Hello!
");

else if (x < y+ z)

printf ("Hi!
");

else

printf("Hey!
");

}

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

Loading

Practice Declarations and Initializations – What will be output of the following “c” code?


#include
void main ( )
{
int a=500, b=100,c;
if( !(a>=400))
b=200;
c=200;
printf( "%d %d", b,c);
}

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

Loading

Practice Declarations and Initializations – What will be output of the following “c” code?


#include
void main ( )
{
int i;
for( i=0; i<10; i++,printf("%d", i));
}

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


Loading

Practice Declarations and Initializations – What will be output of the following “c” code?


#include

void main()

{

int i=10;

i=!i>14;

printf("%d", i);

}