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
What is a program flowchart?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is the purpose of 'register' keyword in c language?
Explain how do you sort filenames in a directory?
What are types of functions?
How can I do peek and poke in c?
What is a nested loop?
What is pragma in c?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What is wrong with this statement? Myname = 'robin';
By using C language input a date into it and if it is right?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is the use of static variable in c?
How can you find out how much memory is available?