write a C program, given number is double without using addt
ion and multiplication operator?ex:n=6,ans=12,pls send me ans
to goviseenu@gmail.com
Answer Posted / sandeep
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter a floating point value");
scanf("%f",&num);
printf("Given no is %f and twice of number is %f"num,num-(-num));
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
write a program to generate address labels using structures?
Can you return null in c?
explain what are pointers?
Explain pointer. What are function pointers in C?
What is the newline escape sequence?
What does c in a circle mean?
Why are algorithms important in c program?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
List some of the static data structures in C?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Describe explain how arrays can be passed to a user defined function
write a program fibonacci series and palindrome program in c
How can I direct output to the printer?
How can I read data from data files with particular formats?
What does sizeof return c?