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

List some basic data types in c?

559


What is action and transformation in spark?

597


How do I use void main?

631


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1737


What is the explanation for the dangling pointer in c?

680






What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1492


What are structures and unions? State differencves between them.

616


Give differences between - new and malloc() , delete and free() ?

612


What is the difference between a function and a method in c?

560


What is #include cctype?

580


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

623


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

632


Which header file is essential for using strcmp function?

943


What is the process to create increment and decrement stamen in c?

588


What is the general form of #line preprocessor?

587