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 / rohit

variable X have not been defined. so it has an error...........

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of pointers in C?

870


Why c is faster than c++?

830


Subtract Two Number Without Using Subtraction Operator

629


In which header file is the null macro defined?

1147


Difference between linking and loading?

915


What are register variables in c?

834


Explain null pointer.

845


Explain how do you view the path?

906


Is swift based on c?

894


In c language can we compile a program without main() function?

877


Write a Program to accept different goods with the number, price and date of purchase and display them

5918


What is the difference between union and structure in c?

821


What are the application of c?

871


What are examples of structures?

829


What is an arrays?

869