Which of the following special symbol allowed in a variable name?
Practice Basic Concept – Which of the following special symbol allowed in a variable name?
Practice Basic Concept – Which of the following special symbol allowed in a variable name?
Practice Basic Concept – All keywords in C are in
Practice Basic Concept – What will be output of the following “c” code?
#include
int main(){
printf("%d","abcde"-"abcde");
return 0;
}
Practice Basic Concept – Which of the following typecasting is accepted by C?
Practice Basic Concept – What will be the output of the below C program.
#include
int main(){
int a= 0;
int b = 20;
char x =1;
char y =10;
if(a,b,x,y)
printf("hello");
return 0;
}
Practice Basic Concept – What is the output of the following C Program?
#include
void main()
{
int y;
scanf("%d",&y); // Given Input is 2000
if( (y%4==0 && y%100 != 0) || y%100 == 0 )
printf("%d is a leap year");
else
printf("%d is not a leap year");
}
Practice Basic Concept – What is the output of the following C Program?
#include
void main()
{
char not;
not=!2;
printf("%d",not);
}
Practice Basic Concept – What is the output of the following C Program?
#include
void main()
{
clrscr();
}
clrscr();
Practice Basic Concept – What is the output of the following C Program?
#include
void main()
{
main();
}
Practice Basic Concept – What will be the output of the following C program?
void main()
{
int i= 1234; j = 0177, k = 0xa08c;
printf ("%8d %80x /n", I,j,k),
}
Practice Basic Concept – What is the output of the following C Program?
#include
void main(){
int i;
for(i=0;i<5;i++){
int x=0;
printf("%d",x);
x++;
}
}
Practice Basic Concept – What would be the value assigned to a,b and c if the statement scanf (“%3d,%3d,%3d”, &a,&b,&c) is executed with input data as 1234_5678_9 (Note: _ denote as blank)
Practice Basic Concept – What would be the values assigned to a, b, c, if the statement scanf(“%d %d %d”, &a, &b, &c) is extended with input data item 123466 ?
Practice Basic Concept – What is the output of the following C Program?
#include
void main()
{
int i;
printf("%d",scanf("%d",&i)); // value 20 is given as input here
}
Practice Basic Concept – What is the output of the following problem ?
void main()
{
int sum, index,
-index= 50;
while (index > = 0) {
sum = sum / index;
-index;
} }