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
How important is structure in life?
What is the difference between typedef and #define?
When we use void main and int main?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Can a program have two main functions?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
What is the use of c language in real life?
what is uses of .net
What is the best style for code layout in c?
What is the need of structure in c?
Why ca not I do something like this?
What is the g value paradox?
What are the advantages and disadvantages of c language?
What is I ++ in c programming?