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


Please Help Members By Posting Answers For Below Questions

Can you write a programmer for FACTORIAL using recursion?

604


Can a pointer be null?

552


Explain what is #line used for?

599


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2646


What are actual arguments?

639






a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

605


What is meant by inheritance?

622


write a program for the normal snake games find in most of the mobiles.

1776


Can we use visual studio for c?

537


Why we use int main and void main?

530


Explain what are its uses in c programming?

586


How does placing some code lines between the comment symbol help in debugging the code?

534


What does nil mean in c?

665


Explain how do you determine whether to use a stream function or a low-level function?

616


How do you redirect a standard stream?

615