what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
Answer Posted / ravinderreddy
1 only
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What does c mean in standard form?
Is main is user defined function?
Tell us something about keyword 'auto'.
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
Is array a primitive data type in c?
What are the c keywords?
What is c language in simple words?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Why should I use standard library functions instead of writing my own?
What is scanf () in c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What is the best way of making my program efficient?
How can I write a function that takes a format string and a variable number of arguments?
What are the rules for the identifier?