What will be the output of the following program?
Practice Declarations and Initializations – What will be the output of the following program?
#include
#define max
int main(){
printf("%d",max);
return 0;
}
Practice Declarations and Initializations – What will be the output of the following program?
#include
#define max
int main(){
printf("%d",max);
return 0;
}
Practice Declarations and Initializations – What will be the output of the following program?
int main()
{
int const * p=5;
printf("%d",++(*p));
return 0;
}
Practice Declarations and Initializations – What is the output of the following problem ?
#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 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");
}
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 – In C programming language the below statement means.
Practice Declarations and Initializations – What is the correct way to round off x, a float, to an int value?
Practice Declarations and Initializations – What will be output of the following “C” code?
#include
main()
{
100;
printf("%d",100);
}
Practice Declarations and Initializations – What will be output of the following “C” code?
main()
{
int i=-1;
-i;
printf("%d,%d",i,-i);
}
Practice Declarations and Initializations – What could be the output for following “C” code?
main()
{
int a= - - 2;
printf("%d",a);
}
Practice Declarations and Initializations – Predict the output of following code:
void main()
{
float a=1.1;
double b=1.1;
if(a==b)
printf("equal");
else
printf("not equal");
}
Practice Declarations and Initializations – What is the output of this C code?
#include
int main()
{
short int i;
scanf("%hd", &i);
printf("%hd", i); return 0;
}
Practice Declarations and Initializations – In case of ordinary int variables