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
Explain how can I convert a string to a number?
What is a built-in function in C?
What is null pointer constant?
Where local variables are stored in c?
what is the syallabus of computer science students in group- 1?
What is c standard library?
Describe wild pointers in c?
What is %d called in c?
Is sizeof a keyword in c?
In C language, a variable name cannot contain?
How is a pointer variable declared?
What are the applications of c language?
What is character constants?
What is the difference between typedef and #define?
Differentiate between a structure and a union.