without using control structures and control structures find the max and min of given 2 nos
Answer / chavidi
by using ternary operators we can find the max number among
2 numbers
a>b?a:b;
| Is This Answer Correct ? | 5 Yes | 2 No |
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
What are the storage classes in C?
Can you pass an entire structure to functions?
What is const and volatile in c?
How does variable declaration affect memory?
How can I automatically locate a programs configuration files in the same directory as the executable?
print 1-50 with two loop & two print Statement
How can you avoid including a header more than once?
Explain how can I convert a number to a string?
What is %lu in c?
What is a macro in c preprocessor?
Are the outer parentheses in return statements really optional?