The declaration “unsigned u” indicates
Practice Declarations and Initializations – The declaration “unsigned u” indicates
Practice Declarations and Initializations – The declaration “unsigned u” indicates
Practice Declarations and Initializations – What would be the output of the following C program ?
void main() {
int = 12345;
float x = 145.678;
printf ("%3d, %5d, %8d", i,i,i,);
}
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 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 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
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 the following “c” code?
#include
void main()
{
int i=10;
i=!i>14;
printf("%d", i);
}
Practice Declarations and Initializations – What will be output of the following “c” code?
#include
void main()
{
100;
printf("%d",100);
}
Practice Declarations and Initializations – What is the output of the following C Program?
#include
void main()
{
int a=4, b = 6;
printf ("%d", a==b);
}
Practice Declarations and Initializations – What is the output of the following “c” program ?
#include
void main()
{
int i = 107, x = 5;
printf ((x > 7)? "%d" : "%c:, i)
}
Practice Declarations and Initializations – What is the output of the following program ?
#include
void main()
{
int i= 5;
if (i == 5)
return 0;
else
printf("i is not five");
printf("over");
}