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

Answer Posted / muz

@ ^^^

long int is not sufficient to hold the result of 2^(5 digit
number).
Even if u take long long <variable>, the result will be
displayed as infinity.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have any idea how to compare array with pointer in c?

598


Simplify the program segment if X = B then C ← true else C ← false

2579


What is a pointer value and address in c?

630


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2029


What happens if you free a pointer twice?

606






What is the difference between char array and char pointer?

525


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2004


hi any body pls give me company name interview conduct "c" language only

1663


Write a Program to accept different goods with the number, price and date of purchase and display them

5441


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1584


Explain enumerated types in c language?

602


What is the difference between array and pointer in c?

577


Can main () be called recursively?

625


Can we use any name in place of argv and argc as command line arguments?

606


What is the difference between struct and union in C?

568