Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / raj sarswat
void main()
{
int a,b;
printf("enter the value of a and b");
scanf("%d,%d",&a,&b);
a>b?printf("%d",&a):printf("%d",&b);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are c identifiers?
How do you determine the length of a string value that was stored in a variable?
What is the function of this pointer?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Why are algorithms important in c program?
What are the two types of structure?
please give me some tips for the placement in the TCS.
When should I declare a function?
Do you have any idea how to compare array with pointer in c?
What is a constant?
What are the different properties of variable number of arguments?
How can I insert or delete a line (or record) in the middle of a file?
What is the difference between formatted&unformatted i/o functions?
find out largest elemant of diagonalmatrix