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...

f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?

Answer Posted / viji

a++ is postfix operator so it first assigns its values and
then incremented. In above statement the value of a is first
assigned to c and then increment. so the output of c is 2;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

2153


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1139


What is a keyword?

1164


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1217


Describe the order of precedence with regards to operators in C.

1047


Explain how do you print an address?

1146


What is break in c?

1025


Can we assign string to char pointer?

1099


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1388


What is void pointers in c?

1004


What is the use of bitwise operator?

1130


What are the 5 types of organizational structures?

1071


How can type-insensitive macros be created?

1168


What is the general form of #line preprocessor?

991


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1050