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 what is the best way to comment out a section of code that contains comments?
How do I use void main?
Explain what is gets() function?
Can i use “int” data type to store the value 32768? Why?
Explain about C function prototype?
Why c language is called c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Explain how can type-insensitive macros be created?
Write a program to swap two numbers without using third variable in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
Do variables need to be initialized?
What are the 4 types of unions?
Why is python slower than c?
How can you increase the size of a dynamically allocated array?