Write one statement equalent to the following two statements
x=sqr(a);
return(x);
Choose from one of the alternatives
a.return(sqr(a));
b.printf("sqr(a)");
c.return(a*a*a);
d.printf("%d",sqr(a));
Answer Posted / pradeep kumar.s
My Option Is d
since the printf statement is capable of having two
functionalities
1, display the message in output screen
2, calls the function and return the answer here.
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is the difference between struct and union in C?
Is there anything like an ifdef for typedefs?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is return type in c?
Explain what are header files and explain what are its uses in c programming?
What does the c preprocessor do?
What is null pointer in c?
how should functions be apportioned among source files?
How are variables declared in c?
What is structure in c language?
What does c mean?
What is the scope of local variable in c?