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
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Why is it that not all header files are declared in every C program?
What is a wrapper function in c?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
int far *near * p; means
How do you do dynamic memory allocation in C applications?
What is c basic?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What is c language and why we use it?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
How do you define CONSTANT in C?
What is memcpy() function?
What type is sizeof?
What is multidimensional arrays