What is the output of the following program ?
Practice Declarations and Initializations – What is the output of the following program ?
void main()
{
printf("%d",10?0?5:1:12);
}
Practice Declarations and Initializations – What is the output of the following program ?
void main()
{
printf("%d",10?0?5:1:12);
}
Practice Declarations and Initializations – What is the output of the following problem ?
#include
#define max
int main(){
printf("%d",max);
return 0;
}
Practice Declarations and Initializations – What is the output of the following problem ?
int main()
{
int const * p=5;
printf("%d",++(*p));
return 0;
}
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;
}
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;
}
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;
}
Practice Declarations and Initializations – Which is the valid declaration?
Practice Declarations and Initializations – What is the problem in the following declarations?
int func(int);
double func(int);
int func(float);
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);
}
Practice Declarations and Initializations – A declaration “short int” is used for variables
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);
}
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!
");
}
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);
}
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));
}
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);
}