4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.
Answer Posted / 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 |
Post New Answer View All Answers
What is extern keyword in c?
What is actual argument?
Is struct oop?
What is data structure in c language?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
When we use void main and int main?
How a string is stored in c?
Explain do array subscripts always start with zero?
Write a program to print all permutations of a given string.
Explain what are multidimensional arrays?
Explain what is meant by 'bit masking'?
Why dont c comments nest?
What is c language & why it is used?
What is meant by errors and debugging?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me