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
Answers were Sorted based on User's Feedback
Answer / fazlur
Yes the answer will b 2 because the variable a is local to
the main function only.so the value of a will not b changed.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
There seem to be a few missing operators ..
What is the process to create increment and decrement stamen in c?
Is c language still used?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Why void is used in c?
What header files do I need in order to define the standard library functions I use?
What is %s and %d in c?
Is it possible to create recycle bin in mobiles?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
what is the difference between structure and union?
prog for 1st five prime numbers in 2^x - 1