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

How can I change their mode to binary?

0 Answers  


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

0 Answers  


What is the difference between void main and main in c?

0 Answers  


how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y

4 Answers   TCS,


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

0 Answers  






main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


how to find the largest element of array without using relational operater?

6 Answers   Satyam, Wipro,


How can you tell whether two strings are the same?

0 Answers  


What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

2 Answers   CTC,


#define f(x) main() { printf("\n%d",f(2+2)); }

5 Answers  


c program to arrange digits in a no in ascending and descending order

1 Answers  


Why are algorithms important in c program?

0 Answers  


Categories