Read two numbers from keyboard and find maximum of them?



Read two numbers from keyboard and find maximum of them?..

Answer / venugopal

#include<stdio.h>
#include<conio.h>

main()
{
int first,sec;
clrscr();
printf("enter two no's");
scanf("%d %i",&first,&sec);

if(first>sec)
{
printf("%i is big",first);
}
else
printf("%d is big",sec);
getch();
}

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

how to impliment 2 or more stacks in a single dimensional array ?

1 Answers   iFlex, Microsoft,


What is the use of volatile?

0 Answers  


Explain what are header files and explain what are its uses in c programming?

0 Answers  


What language is c written?

0 Answers  


Is c dynamically typed?

0 Answers  






An array name contains base address of the array. Can we change the base address of the array?

4 Answers   NMIMS, Wipro,


write the program for maximum of the following numbers? 122,198,290,71,143,325,98

5 Answers  


What does do in c?

0 Answers  


Is null valid for pointers to functions?

0 Answers  


What are the different types of pointers?

4 Answers   HCL, TCS,


to find out the reverse digit of a given number

6 Answers   Infosys, Microsoft, TCS, Wipro,


Explain how can you tell whether two strings are the same?

0 Answers  


Categories