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(x,y,z)
{
y = y+1;
z = z+x;
}
main()
{
int a,b;
a = 2
b = 2;
f(a+b,a,a);
print a;
}

what is the value of 'a' printed

Answer Posted / sachin arora

Answer a=2
because f is a function and that time STACK concept are
used ,in a function last value a is printed and a=2;
so result will b 2

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use any name in place of argv and argc as command line arguments?

1076


Differentiate fundamental data types and derived data types in C.

1036


What are logical errors and how does it differ from syntax errors?

1303


What is d scanf?

1092


What is the 'named constructor idiom'?

1090


What is define directive?

1157


Why are algorithms important in c program?

1125


How can you tell whether two strings are the same?

1258


Can you explain the four storage classes in C?

1125


What does %p mean?

1088


What is typeof in c?

1017


Not all reserved words are written in lowercase. TRUE or FALSE?

1236


Why does notstrcat(string, "!");Work?

1149


Why doesnt the call scanf work?

1195


Why is a semicolon (;) put at the end of every program statement?

1076