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


Please Help Members By Posting Answers For Below Questions

formula to convert 2500mmh2o into m3/hr

485


What is the difference between null pointer and wild pointer?

623


Why are algorithms important in c program?

610


What standard functions are available to manipulate strings?

552


Differentiate between Macro and ordinary definition.

712






What is the size of a union variable?

586


Define Spanning-Tree Protocol (STP)

632


Tell me what is null pointer in c?

596


What does the characters “r” and “w” mean when writing programs that will make use of files?

838


What is scanf () in c?

652


How will you declare an array of three function pointers where each function receives two ints and returns a float?

764


What is s or c?

582


What is the difference between text and binary i/o?

579


Explain how do you generate random numbers in c?

608


Explain the difference between ++u and u++?

624