Q. Which of the following has the compilation error in c?
A- int n=17;
B- char c=99;
c- float f=(float)99.32;
I think None of options have compilation error
exactly......but isro give Ans option 4..............but i am not know why
yes their may be chance to have compilation error could not open file stdio
Another bad question from ISRO. None of it should result in Error. Also, poor title of question. Please update title.
All are correct ans....
char c = 99 is not having single quote i think it should be'99'..plz explain
according to me it's '99' ............but in question is not uses ' '..
char c= 99 is correct. No compilation error. c can take values from -127 to +127. c=99, if you print with %d in printf, you will see output 99. If you print c using %c in printf, you will see output as c, 99 is ASCII for c.