write a c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?
Answer Posted / sudarshan
#include<stdio.h>
void main()
{
int a,b;
scanf("%d",&a);
b=a*a;
printf("%d",b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
Tell us something about keyword 'auto'.
Do character constants represent numerical values?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What are types of preprocessor in c?
What are all different types of pointers in c?
What is signed and unsigned?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What are local static variables? How can you use them?
What is the argument of a function in c?
What is getch c?
Do you know the use of 'auto' keyword?
Where static variables are stored in memory in c?
What is double pointer in c?
Explain how are 16- and 32-bit numbers stored?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?