n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Answer Posted / naresh lingampally
cool!!! ignoring the syntax errors;
n=7623
n/10== 762
result=>762*10+*;
this means that the result itself should be initialized to
'0' so that there would a right output..
So output will be garbage value ...
to my knowledge
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
Can we assign integer value to char in c?
What is a void * in c?
How many levels of pointers can you have?
What are comments and how do you insert it in a C program?
What is union and structure?
What is 2 d array in c?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
How can I write a function that takes a format string and a variable number of arguments?
What does 3 mean in texting?
What is the size of array float a(10)?
What is the symbol indicated the c-preprocessor?
How does struct work in c?
What are the loops in c?