Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer / aravind
#include<stdio.h>
#include<math.h> /*I am not sure whether this lib fun is gud*/
int main()
{
int num=12345,result;
result=pow(12345,2);
printf("result=%d",result);
}
| Is This Answer Correct ? | 3 Yes | 4 No |
What is the difference between array and linked list in c?
How can you allocate arrays or structures bigger than 64K?
which type of question asked from c / c++ in interview.
What are the differences between new and malloc in C?
Why main is not a keyword in c?
How can you return multiple values from a function?
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
What is meant by recursion?
What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }
What will be printed as the result of the operation below: #include<..> int x; int modifyvalue() { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; changevalue(x); x++; modifyvalue(); printf("First output:%d\n",x); x++; changevalue(x); printf("Second output:%d\n",x); modifyvalue(); printf("Third output:%d\n",x); }
What is the difference between typeof(foo) and myFoo.GetType()?
2. What does static variable mean?