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 / satya
Ya.. it is correct...
you initialized the x as Int..
we have to to initialize it as int...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you read a directory in a C program?
Is it better to use a macro or a function?
Write a program to print “hello world” without using semicolon?
explain what is an endless loop?
How can I send mail from within a c program?
What are the salient features of c languages?
How do you print only part of a string?
Tell us two differences between new () and malloc ()?
using only #include
Can one function call another?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What are data types in c language?
What is this pointer in c plus plus?
What is d'n in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?