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
Add Two Numbers Without Using the Addition Operator
What is variable declaration and definition in c?
code for find determinent of amatrix
Write a program to reverse a given number in c language?
What does *p++ do? What does it point to?
List some of the static data structures in C?
What are register variables in c?
Can you mix old-style and new-style function syntax?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
How are portions of a program disabled in demo versions?
What are pointers? What are stacks and queues?
How to declare pointer variables?
Why static is used in c?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What are the key features in c programming language?