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
Write a program to reverse a linked list in c.
Differentiate between a structure and a union.
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is data structure in c programming?
Can I initialize unions?
Which is the best website to learn c programming?
How can a process change an environment variable in its caller?
What is the purpose of main( ) in c language?
Explain what is the heap?
Where is c used?
Can you apply link and association interchangeably?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Why is c so powerful?
What is the meaning of typedef struct in c?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc