Documente Academic
Documente Profesional
Documente Cultură
}
A) i=2 j=0 k=2 }
B) i=2 j=Garbage Value k=2 A) Error : Cannot convert char to char*
C) i=2 j= 0 k=2 B) Punjab
D) i= Garbage Value j=0 k=2 C) Pu
D) n
Q10. What will be the output of the following
program?
#define int int int i,j 14. 1500 is the expected output for the following
void main() code, but the code is not displaying the
{ same.Identify the error.
intint=2; #include<stdio.h>
#include<conio.h>
printf("%d\n",i);
printf("%d\n",j); void main()
} {
A) Garbage value int p,t,si;
Garbage Value float r;
clrscr();
B) Garbage Value p=5000;
2 t=4;
r=7.5;
C) 2 si=(p*r*t)/100;
Garbage Value printf(%f,si);
getch();
}
D) 0
0 15. Identify the error in following code.
Q11. What will be the output of the following #include<stdio.h>
program? #include<conio.h>
void main()
{ void main()
char name; {
name = 'hello'; char name;
printf("%c",name); clrscr();
} name=hello;
A) h printf(%c,name);
B) Error getch();
C) Hello }
D) Garbage Value