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

find the sum of two matrices and WAP for it.

620


What do you mean by invalid pointer arithmetic?

624


Difference between exit() and _exit() function?

645


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

639


Is c is a high level language?

609






What is structure and union in c?

584


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

1719


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1368


Why is it important to memset a variable, immediately after allocating memory to it ?

1542


What are the 4 types of functions?

560


Do pointers store the address of value or the actual value of a variable?

600


explain what are actual arguments?

624


How can I implement sets or arrays of bits?

594


What is the difference between typedef struct and struct?

585


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1729