Question
Given an integer n, what does the following function compute?
int function(int n)
{
int i;
for(i = 0; n != 0; n %=10, i++)
return i;
}
Answer :
Word Count : 145
The given function computes the number of digits in the integer n. Here's how it works:
- The function initializes an integer variable
i_______ __________ ___ _______ _________ ________ ____ __________ _________ __________ ______.
___ ___ _____ ______ __________.
_____ _____ ________ _______ ______ __________ __________ _____ _____ ______.
____ _________ ______ ______ ___.
____ __________ ___ ___ _____ ___ ______ _____ ________ ________ _________ _____.
_________ ______ _________ _____ __________ __________ _______ ________.
______ ____ _______ _________ __________ ________ ________ _____ _________ ________ ____.
_____ _____ ____ __________ ___ ________ ________ ___ __________.
___ __________ __________ ___ ____ _________.
____ ________ ______ ________ ____.
______ ____ _________ ______ _____ ___ ________.
_____ ____ ___ ________ ____ _________.
_____ __________ __________ ________ ___ _______.
________ ____ ______ ______ ________ _____.
_______ _________ _____ ___ __________ __________.
__________ ___ _____ __________ _____ ___.
____ ____.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★