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 / vignesh1988i

#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 ?    37 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how many levels deep can include files be nested?

1117


What does c mean in basketball?

1045


How do you convert strings to numbers in C?

1293


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

2009


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1129


What are integer variable, floating-point variable and character variable?

1294


Is c call by value?

1075


Can we use any name in place of argv and argc as command line arguments?

1125


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

1090


What is a shell structure examples?

1148


How to draw the flowchart for structure programs?

9386


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1127


Explain what is the purpose of "extern" keyword in a function declaration?

1121


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2429


What is infinite loop?

1129