Program to find larger of the two numbers without using if-else,while,for,switch
Answer Posted / kristian vitozev
#include <stdio.h>
int main(void)
{
int a = 7, b = 25;
a>b ? printf("%d [a]",a) : printf("%d [b]", b);
return 0;
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
State two uses of pointers in C?
Why is not a pointer null after calling free?
State the difference between x3 and x[3].
Explain what is the difference between #include and #include 'file' ?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What are the advantages and disadvantages of pointers?
given post order,in order construct the corresponding binary tree
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Why main function is special give two reasons?
Which type of language is c?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
what is the difference between class and unio?
Difference between macros and inline functions? Can a function be forced as inline?
Explain what is dynamic data structure?
Explain what will the preprocessor do for a program?