1. What will be the output of the following programs.
a) #include <stdio.h>
Main()
{
Int x=4;
While(x==1)
{
X=x-1;
Printf(ā%dā,x);
--x;
}
}
Answer Posted / bhavani
i think x initialization wrong.so it has an error...........
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a simple code fragment that will check if a number is positive or negative.
Explain what does it mean when a pointer is used in an if statement?
What is getch () for?
Can you please explain the difference between syntax vs logical error?
What are # preprocessor operator in c?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Explain what is operator promotion?
Can 'this' pointer by used in the constructor?
Difference between exit() and _exit() function?
Is anything faster than c?
What is define directive?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Why is c called c not d or e?
What is c system32 taskhostw exe?
What is the difference between abs() and fabs() functions?