Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer Posted / 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 |
Post New Answer View All Answers
how to introdu5ce my self in serco
What is the size of empty structure in c?
What is const and volatile in c?
What is meant by preprocessor in c?
Write the Program to reverse a string using pointers.
What is structure padding in c?
What are linked lists in c?
What is the best organizational structure?
Explain what are the different file extensions involved when programming in c?
What is a file descriptor in c?
What are the ways to a null pointer can use in c programming language?
Do you know null pointer?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What is the function of multilevel pointer in c?
If I have a char * variable pointing to the name of a function ..