consider the following C code
main()
{
int i=3,x;
while(i>0)
{
x=func(i);
i--;
}
int func(int n)
{
static sum=0;
sum=sum+n;
return(sum);
}
the final value of x is
Answer Posted / vignesh1988i
the final value of x is 6
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is the use of the function in c?
What is an endless loop?
What is the best style for code layout in c?
i want to know the procedure of qualcomm for getting a job through offcampus
write a program to print data of 5 five students with structures?
What are the key features in c programming language?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
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
With the help of using classes, write a program to add two numbers.
What is the difference between array and pointer?
What is the difference between typedef struct and struct?
What is 1d array in c?
Can a variable be both static and volatile in c?
What are the string functions? List some string functions available in c.