Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.

Answers were Sorted based on User's Feedback



4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

Answer / chinmayee

no the program should not be that because the qs is 2 power
that 5 digit number

Is This Answer Correct ?    3 Yes 1 No

4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

Answer / deepshree sinha

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n,m
printf("enter any five digit number");
scanf("%d ",&n);
m=pow(2,n);
printf("m=%d",m);
getch();
}

Is This Answer Correct ?    5 Yes 4 No

4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

Answer / manojpadhi04

please inform me the answer

Is This Answer Correct ?    3 Yes 6 No

4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

Answer / nitish kumar choudhary

u have to define int as long unsigned int to increase its
size..
normally int cant give u the answer.

void main()
{
long unsigned int res;
int a;
printf("Enter the 5 digit no.: ");
scanf("%d" ,&a);
printf("result is: %uL", a*a);
getch();
}

Is This Answer Correct ?    3 Yes 6 No

4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. ..

Answer / sathishmani

#include<stdio.h>
#include<conio.h>
void main()
{
int a;
a=12345;
printf("\n The Result is ",a*a);
getch();
}

Is This Answer Correct ?    6 Yes 18 No

Post New Answer

More C Interview Questions

wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


How can I discover how many arguments a function was actually called with?

0 Answers  


What is stack in c?

0 Answers  


using for loop sum 2 number of any 4 digit number in c language

0 Answers  


int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?

6 Answers   TCS,


What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }

5 Answers   ADITI, Wipro,


A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.

4 Answers  


Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


What extern c means?

0 Answers  


What is calloc in c?

0 Answers  


What are the characteristics of arrays in c?

0 Answers  


Tell us something about keyword 'auto'.

0 Answers  


Categories