Write a program that takes a 5 digit number and calculates 2
power that number and prints it
Answer Posted / subhashini
void main()
{
long int n,x;
clrscr();
printf(" Enter 5 digit number:");
scanf("%d",&n);
x=2^n;
printf("result: %d",x);
getch();
}
Is This Answer Correct ? | 1 Yes | 9 No |
Post New Answer View All Answers
What is the use of c language in real life?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Explain how can you check to see whether a symbol is defined?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What are the benefits of organizational structure?
How many levels of indirection in pointers can you have in a single declaration?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Why c is called object oriented language?
What does a pointer variable always consist of?
What is character constants?
Does * p ++ increment p or what it points to?
What is use of bit field?
What's a good way to check for "close enough" floating-point equality?
What is the g value paradox?
What are the Advantages of using macro