f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
Answers were Sorted based on User's Feedback
Answer / guest
a) f points to max of x and y
if (x > y) is true.. x would be returned, else y.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / piyush
the stament terminator(;) is missing......
so the answer is ,
c:error
| Is This Answer Correct ? | 2 Yes | 3 No |
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Explain enumerated types in c language?
how to find the size of the data type like int,float without using the sizeof operator?
Why static is used in c?
Write a simple program to find the size of different basic data types in C.
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
What is the acronym for ansi?
When is a void pointer used?
Write a program in C to reverse a number by recursive function?
what is the different bitween abap and abap-hr?
What is operator promotion?
Can you think of a logic behind the game minesweeper.