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

How can I get random integers in a certain range?

1022


What is a pointer in c?

1434


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1813


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2306


Is linux written in c?

1002


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2145


When should a type cast not be used?

1012


how is the examination pattern?

1971


write a programming in c to find the sum of all elements in an array through function.

2130


Why is main function so important?

1063


What are the differences between Structures and Arrays?

1146


What are the advantages of using new operator as compared to the function malloc ()?

1289


What is time complexity c?

953


Why clrscr is used after variable declaration?

1638


How does pointer work in c?

1083