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
Can we use any name in place of argv and argc as command line arguments?
Differentiate fundamental data types and derived data types in C.
What are logical errors and how does it differ from syntax errors?
What is d scanf?
What is the 'named constructor idiom'?
What is define directive?
Why are algorithms important in c program?
How can you tell whether two strings are the same?
Can you explain the four storage classes in C?
What does %p mean?
What is typeof in c?
Not all reserved words are written in lowercase. TRUE or FALSE?
Why does notstrcat(string, "!");Work?
Why doesnt the call scanf work?
Why is a semicolon (;) put at the end of every program statement?