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...

get any number as input except 1 and the output will be
1.without using operators,expressions,array,structure.don't
print 1 in printf statement

Answer Posted / karna

void main()
{
int n;
printf("%d",scanf("%d",n));
getch();
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashing in c language?

1419


Is c is a high level language?

1251


write a proram to reverse the string using switch case?

3001


What is difference between array and pointer in c?

1135


Explain a pre-processor and its advantages.

1189


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1291


How reliable are floating-point comparisons?

1140


Is array name a pointer?

1074


What is a c token and types of c tokens?

1119


Explain what is the difference between the expression '++a' and 'a++'?

1261


Explain the advantages and disadvantages of macros.

1140


What is static identifier?

1279


What are structure members?

1142


what is the height of tree if leaf node is at level 3. please explain

2198


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

2041