How many types of binary heaps are there?
What is the value of the expression strlen("hello\0")?
Which of the following are special characters in c?
What is the output of the following C program?
What is the value of *p after the following code is executed?
int i, b[] = {1, 2, 3, 4, 5}, *p;
p = b;
++*p;
p += 2;
What is the output of the following C program?
#include <stdio.h>
void main()
{
register int x;
printf("%d", x);
}
Which of the following is/are automatically added to every class , if we do not write our own
#include
Suppose the user enters n1 as 20 and n2 as 30.
Predict the output of the following C program:
#include<stdio.h>
int main()
{
int a=10,i;
L1:for(i=0;i<10;i++)
{
printf("hello\n");
}
printf("hello\n");
goto L1;
}
What is the purpose of using the extern keyword before a function declaration?
For example, the following function sum is declared as extern:
extern int sum(int x, int y, int z)
{
return (x + y + z);
}