i want to make a program in which we use input having four
digits(4321) and get output its reciprocal(1234).
Answer / fcuker
#include <stdio.h>
int main() {
int x;
scanf("%d", &x);
while (x > 0) {
printf("%d", x % 10);
x = x / 10;
}
return 0;
}
| Is This Answer Correct ? | 7 Yes | 0 No |
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?
How is a pointer variable declared?
What is a stream?
Explain what are multibyte characters?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
what are the 10 different models of writing an addition program in C language?
What are the 5 organizational structures?
write a program to check whether a number is Peterson or not.
Do character constants represent numerical values?
1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do
1 Answers AAS, Nagarro, Vuram,
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);
1 Answers HCL, Public Service Commission,