main()
{
int a;
a=++100;
printf("%d",a);
getch();
}

Answers were Sorted based on User's Feedback



main() { int a; a=++100; printf("%d",a); getch(); }..

Answer / shar

Error, LValue required

Is This Answer Correct ?    7 Yes 1 No

main() { int a; a=++100; printf("%d",a); getch(); }..

Answer / vennila

error, a value should be initialised

Is This Answer Correct ?    3 Yes 1 No

main() { int a; a=++100; printf("%d",a); getch(); }..

Answer / baji shareef

error. Increment procedure is possible only for the variable. ++100 means 100=100+1 i.e., you are changing the value of constant value which is impossible.

Is This Answer Correct ?    1 Yes 0 No

main() { int a; a=++100; printf("%d",a); getch(); }..

Answer / khurshid alam

Sorry Error first define a=0; or any value

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

program to convert a integer to string in c language'

0 Answers  


Bit swapping

2 Answers  


What are the advantages of external class?

0 Answers  


do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?

1 Answers   Oracle,


how to execute a program using if else condition and the output should enter number and the number is odd only...

0 Answers  






Explain continue keyword in c

0 Answers  


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


How can I do graphics in c?

0 Answers  


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

0 Answers  


what is the similarities between. system call and library function?

1 Answers   Wipro,


Explain a file operation in C with an example.

0 Answers   Amdocs,


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

0 Answers  


Categories