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 / 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 |
Post New Answer View All Answers
explain how do you use macro?
What is the Purpose of 'extern' keyword in a function declaration?
What does c value mean?
What is pointer to pointer in c?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Can we use visual studio for c?
Can we change the value of #define in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is function in c with example?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is the use of pragma in embedded c?
Can we assign integer value to char in c?
What is self-referential structure in c programming?
What is a void * in c?