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
How #define works?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is function in c with example?
How can I manipulate individual bits?
Why do we need arrays in c?
What are the back slash character constants or escape sequence charactersavailable in c?
Are the variables argc and argv are local to main?
Write a program to swap two numbers without using the third variable?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
How can I rethow can I return a sequence of random numbers which dont repeat at all?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What the different types of arrays in c?
How many keywords are there in c?
What does void main return?
What is the use of structure padding in c?