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 |
How many types of sorting are there in c?
who did come first hen or agg
What are the similarities between c and c++?
What is variable declaration and definition in c?
Explain how can you determine the size of an allocated portion of memory?
why effort estimation is important?
What is the use of a conditional inclusion statement in C?
Write a C program to find the smallest of three integers, without using any of the comparision operators.
How to delete a node from linked list w/o using collectons?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }
Write a program that can show the multiplication table.