If a five digit number is input through the keyboard, write a
program to print a new number by adding one to each of its
digits.For example if the number that is input is 12391 then
the output should be displayed as 23402


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

who is the editor of 'pokemon'?

1 Answers  


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

0 Answers  


How to convert decimal to binary in C using recursion??

4 Answers   HP, IBM,


write a c program to print the values in words eg:- 143 written it has (one hundred and forty three)& 104, 114 are also written words

5 Answers   Captronic, DELL, Google, IBM, Mithi, RCC, Wipro,


Code for calculating square root without using library function, of math.h

4 Answers   IBM,






Why array is used in c?

0 Answers  


15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

2 Answers   CTS,


What math functions are available for integers? For floating point?

0 Answers  


WRITE A C PROGRAM FOR PRINT "RHOMBUS" STRUCTURE . Example: Enter the numbers :3 * * * * * * * *

3 Answers   Infosys, TCS,


How are pointers declared in c?

0 Answers  


wap in c to accept n number display the highest and lowest value

2 Answers  


what is ans for this scanf(%%d",c);

1 Answers  


Categories