FIND THE OUTPUT IF THE INPUT IS 5 5.75
void main()
{
int i=1;
float f=2.25;
scanf("%d%f",&i,&f);
printf("%d %f",,i,f);
}
ANSWER IS 5 AND 2.25 WHY?
Answer Posted / reshma pawar
there is error in
printf("%d %f",,i,f);
because 2 (,) operators are used
an if operator is removed then output will be
5 5.750000
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why doesnt that code work?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Is this program statement valid? INT = 10.50;
what are bit fields in c?
What is a pointer value and address in c?
What are the advantages of external class?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What should malloc(0) do?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Is it possible to initialize a variable at the time it was declared?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Write a program with dynamically allocation of variable.
What are conditional operators in C?
What does int main () mean?