write a c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?
Answer Posted / parth ujenia
The condition is input take "5 digit" !
and according to above C prog
output of:12345
is: 27825
because range of integer data type is -32768 to 32767.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
Explain how can you tell whether two strings are the same?
What is preprocessor with example?
What does %c mean in c?
What’s a signal? Explain what do I use signals for?
Explain what is the difference between functions getch() and getche()?
Describe how arrays can be passed to a user defined function
Why pointers are used?
What is bash c?
Can i use “int” data type to store the value 32768? Why?
What are the types of pointers?
Does sprintf put null character?
Compare and contrast compilers from interpreters.
write an algorithm to display a square matrix.
What is floating point constants?