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 / ravi

no change in value of a.
i.e,a = 2 only .

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does free() know explain how much memory to release?

616


Explain how can I pad a string to a known length?

647


Write a program on swapping (100, 50)

634


What is data structure in c language?

599


Do pointers need to be initialized?

556






Explain how can you check to see whether a symbol is defined?

657


Why do we write return 0 in c?

547


Can an array be an Ivalue?

657


What is the size of structure in c?

700


What is difference between array and pointer in c?

534


Difference between MAC vs. IP Addressing

635


What is the purpose of the preprocessor directive error?

676


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

652


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2644


How can I read data from data files with particular formats?

599