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

What are integer variable, floating-point variable and character variable?

0 Answers  


HOW TO HANDLE EXCEPTIONS IN C

8 Answers  


#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

12 Answers   Capital IQ, Sasken,


What are formal parameters?

0 Answers  


Was 2000 a leap year?

0 Answers  


Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 Answers  


what does static variable mean?

0 Answers   TCS,


what is a c-language.what is do.

4 Answers   HCL,


from which concept of 'c', the static member function of 'c++' has came?

1 Answers   Bosch,


why we use "include" word before calling the header file. is there any special name for that include??????

1 Answers   TCS,


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

0 Answers  


Explain what is the difference between declaring a variable and defining a variable?

1 Answers  


Categories