get any number as input except 1 and the output will be
1.without using operators,expressions,array,structure.don't
print 1 in printf statement
Answer Posted / karna
void main()
{
int n;
printf("%d",scanf("%d",n));
getch();
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Are pointers really faster than arrays?
Can one function call another?
What is use of null pointer in c?
Write a program to print ASCII code for a given digit.
What is the difference between text and binary i/o?
Explain what is a static function?
what is the significance of static storage class specifier?
What's a good way to check for "close enough" floating-point equality?
What is the use of sizeof?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Explain how can you tell whether two strings are the same?
What is a macro in c preprocessor?
Is c still relevant?
Write a code of a general series where the next element is the sum of last k terms.