"12345".valueOf ("54321"); what is value of output
A. 12345
B. 54321
C. 1234854321
D. None of the above
Answers
Answered by
0
Answer:
D
Explanation:
I hope it's help you. please
Answered by
0
D. None of the above
Given: 12345 value of 54321
To Find: The value of output
Solution:
The following output can be found by using string operations.
void main()
{
long num, temp;
for(;;) {
printf("Enter number:");
scanf("%ld",&num);
if(num == 0) break;
while(num) {
temp = num%10;
num = num/10;
printf("%ld", temp);
}
printf("\n");
break;
}
getch();
}
Therefore, the value is none of the above.
#SPJ3
Similar questions