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
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
explain what are actual arguments?
What is signed and unsigned?
What is calloc()?
What are the types of type qualifiers in c?
Write a program to generate the Fibinocci Series
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?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is the heap in c?
Where static variables are stored in c?
Explain what is wrong with this program statement?
What is the meaning of c in c language?
will u please send me the placement papers to my mail???????????????????
What are the features of c language?
What is echo in c programming?