wap in c to accept a number display the total count of digit
Answer Posted / sashidharan
main()
{
int n,count=0;
scanf("%d",&n);
for(i=0;i<=n;i++)
{
count=count+1;
}
printf("total count of digit",count);
}
| Is This Answer Correct ? | 22 Yes | 20 No |
Post New Answer View All Answers
How many levels of pointers can you have?
Do array subscripts always start with zero?
What is spaghetti programming?
What does %p mean?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What is the use of linkage in c language?
Write a program to print all permutations of a given string.
What are the difference between a free-standing and a hosted environment?
How can I sort a linked list?
What are the types of data files?
When can you use a pointer with a function?
What are the advantages of c preprocessor?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is atoi and atof in c?