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
What is string in c language?
What are the types of pointers?
Explain about C function prototype?
Why is this loop always executing once?
What is || operator and how does it function in a program?
What is a void * in c?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
what type of questions arrive in interview over c programming?
What is #define?
a program that can input number of records and can view it again the record
How many parameters should a function have?
Write a program to find factorial of a number using recursive function.
What is the difference between near, far and huge pointers?
What kind of structure is a house?