#include
#include<stdio.h>
int main()
{
printf("Hello%cWorld", 10);
}
Which of the following statements correctly obtains the remainder when dividing 5.5 by 1.3?
What is the output of the following C program?
int main()
{
float a = 10.0;
a = (int)a % 3;
printf("%f", a);
return 0;
}
How do you include a system header file called sysheader.h in a C source file?
Predict the output of the given program:
#include "stdio.h"
int main()
{
int x, y = 5, z = 5;
x = y == z;
printf("%d", x);
getchar();
return 0;
}
Consider the following variable declarations and definitions in C:
i) int var_9 = 1;
ii) int 9_var = 2;
iii) int _ = 3;
Which of the following statements is correct with respect to the above variables?
What is the purpose of the random_shuffle() function in the C++ Standard Template Library (STL) algorithm?
In C, what is the meaning of the following function prototype with an empty parameter list?
void fun()
{
/* .... */
}
What will be the output?
#include <stdio.h>
int main()
{
char * _ptr = NULL;
_ptr = malloc(0);
if(_ptr==NULL) printf("_ptr is NULL");
else printf("_ptr not NULL");
printf(" %p ", _ptr);
*_ptr = '@';
printf(" %c ", *_ptr);
free(_ptr);
return 0;
}