Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain is it better to bitshift a value than to multiply by 2?

1134


What is typeof in c?

949


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1467


Does c have enums?

1021


Dont ansi function prototypes render lint obsolete?

1059


What are the advantages of using Unions?

1064


what are the advantages of a macro over a function?

1090


What is the purpose of the statement: strcat (S2, S1)?

1057


What is realloc in c?

1012


How does sizeof know array size?

1066


If errno contains a nonzero number, is there an error?

1286


What does 1f stand for?

1076


What are the features of the c language?

1033


What are nested functions in c?

973


What are the scope of static variables?

1112