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
Explain how can you avoid including a header more than once?
What is static identifier?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
How many data structures are there in c?
show how link list can be used to repersent the following polynomial i) 5x+2
What are the advantages and disadvantages of a heap?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What are examples of structures?
I have a varargs function which accepts a float parameter?
Explain the use of 'auto' keyword
Why can’t we compare structures?
How do you initialize pointer variables?
Why is extern used in c?
How is = symbol different from == symbol in c programming?
What are the 4 data types?