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
How can I do serial ("comm") port I/O?
How can I call fortran?
What are the different types of control structures?
Explain high-order and low-order bytes.
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What are header files why are they important?
What does *p++ do? What does it point to?
What is the purpose of type declarations?
What are high level languages like C and FORTRAN also known as?
Are there namespaces in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
When should a type cast not be used?
Why & is used in c?
Explain the advantages and disadvantages of macros.