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


Please Help Members By Posting Answers For Below Questions

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1910


What is the collection of communication lines and routers called?

616


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

768


What does double pointer mean in c?

584


What is pass by reference in functions?

327






What kind of structure is a house?

562


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1892


What header files do I need in order to define the standard library functions I use?

543


What do you understand by normalization of pointers?

629


application attempts to perform an operation?

1497


What are header files and what are its uses in C programming?

642


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

827


What is the difference between text and binary modes?

650


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1712


Why main is used in c?

594