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 / paramesh
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("Enter the number")
scanf("%d",&a);
printf("%d double number is %d", a,a<<1);
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
while initialization of array why we use a[][2] why not a[2][]...?
What is d'n in c?
What is pointer in c?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
When should I declare a function?
Linked lists -- can you tell me how to check whether a linked list is circular?
Explain can you assign a different address to an array tag?
Tell me when would you use a pointer to a function?
Can we assign string to char pointer?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is queue in c?
What are pragmas and what are they good for?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]