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

Program to find the absolute value of given integer using
Conditional Operators

Answer Posted / apoorv gaurav

#include<stdio.h>
int main()
{
int a;
printf("Enter any number");
scanf("%d",&a);
if(a>=0)
printf("%d",a);
printf("%d",(-1*a));
return 0;
}

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

1321


explain what are actual arguments?

1097


What is signed and unsigned?

1068


What is calloc()?

1080


What are the types of type qualifiers in c?

1092


Write a program to generate the Fibinocci Series

1243


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1215


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1167


What is the heap in c?

1086


Where static variables are stored in c?

1113


Explain what is wrong with this program statement?

1126


What is the meaning of c in c language?

1175


will u please send me the placement papers to my mail???????????????????

1841


What are the features of c language?

1075


What is echo in c programming?

1035