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 / ravi vishwakarma

#include<stdio.h>
#include<conio.h>
void main()
{
int m;
printf("enter the value of m:");
scanf("%d",&m);
(m>=0?printf("%d",m):printf("%d",-(m)));
getch();
}

Is This Answer Correct ?    38 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the uses of a pointer?

1121


Why we use conio h in c?

1168


What is the difference between exit() and _exit() function?

1011


What is main function in c?

1033


What is the difference between if else and switchstatement

1879


Explain setjmp()?

1022


What is the use of c language in real life?

991


Is there any demerits of using pointer?

1030


What is a structure in c language. how to initialise a structure in c?

1032


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2061


Without Computer networks, Computers will be half the use. Comment.

2267


write a program to rearrange the array such way that all even elements should come first and next come odd

2242


How does struct work in c?

1040


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2378


Why we write conio h in c?

984