In C programming language the below statement means.

Loading

Practice Declarations and Initializations – In C programming language the below statement means.

What is the correct way to round off x, a float, to an int value?

Loading

Practice Declarations and Initializations – What is the correct way to round off x, a float, to an int value?

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

Loading

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


#include
main()
{
100;
printf("%d",100);
}

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

Loading

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


main()
{
int i=-1;
-i;
printf("%d,%d",i,-i);
}

What could be the output for following “C” code?

Loading

Practice Declarations and Initializations – What could be the output for following “C” code?


main()
{
int a= - - 2;
printf("%d",a);
}

Predict the output of following code:

			  		

Loading

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");
}

What is the output of this C code?

			  		

Loading

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;
}

In case of ordinary int variables

Loading

Practice Declarations and Initializations – In case of ordinary int variables