Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

0 Answers  


Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  


what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string

3 Answers  


fn f(x) { if(x<=0) return; else f(x-1)+x; }

5 Answers   HCL,


What is the real time usage volatile?

2 Answers   Polycom,


Is fortran faster than c?

0 Answers  


where do we use volatile keyword?

1 Answers  


What is uint8 in c?

0 Answers  


Dear Sir, we are required the bubble sorting programs Regs Prem

1 Answers  


Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table

3 Answers   Value Labs,


Tell me about low level programming languages.

0 Answers   Amdocs,


Write a program which calculate sum of several number and input it into an array. Then, the sum of all the number in the array is calculated.

2 Answers  


Categories