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


Please Help Members By Posting Answers For Below Questions

What is Dynamic memory allocation in C? Name the dynamic allocation functions.

552


Why is it that not all header files are declared in every C program?

676


What is a wrapper function in c?

576


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?

653


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

2225






int far *near * p; means

3113


How do you do dynamic memory allocation in C applications?

626


What is c basic?

591


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1535


What is c language and why we use it?

612


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

672


How do you define CONSTANT in C?

647


What is memcpy() function?

615


What type is sizeof?

578


What is multidimensional arrays

624