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


Please Help Members By Posting Answers For Below Questions

explain how do you use macro?

665


What is the Purpose of 'extern' keyword in a function declaration?

649


What does c value mean?

618


What is pointer to pointer in c?

632


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

627






Can we use visual studio for c?

544


Can we change the value of #define in c?

582


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(); }

1855


What is function in c with example?

625


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

574


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1924


What is the use of pragma in embedded c?

586


Can we assign integer value to char in c?

611


What is self-referential structure in c programming?

655


What is a void * in c?

589