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
Write a code of a general series where the next element is the sum of last k terms.
With the help of using classes, write a program to add two numbers.
What is meant by type casting?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is the difference between array and pointer in c?
What will the preprocessor do for a program?
How can I pad a string to a known length?
What is selection sort in c?
Explain how can a program be made to print the name of a source file where an error occurs?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Difference between macros and inline functions? Can a function be forced as inline?
Explain two-dimensional array.
What does dm mean sexually?
Explain what is the best way to comment out a section of code that contains comments?
Where can I get an ansi-compatible lint?