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 |
write a c program to calculate sum of digits till it reduces to a single digit using recursion
what is the output of below int n=10; (n++)++; printf("%d",n);
Using which language Test cases are added in .ptu file of RTRT unit testing???
Write a program in C to convert date displayed in gregorian to julian date
Should I learn c before c++?
3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r
what different between c and c++
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is the restrict keyword in C?
Is c language still used?
wtite a program that will multiply two integers in recursion function
What are the uses of null pointers?