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
What are the string functions? List some string functions available in c.
How do we open a binary file in Read/Write mode in C?
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 difference between printf and scanf in c?
What do the functions atoi(), itoa() and gcvt() do?
What are the features of the c language?
Explain the advantages of using macro in c language?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain what is wrong with this program statement? Void = 10;
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
what will be maximum number of comparisons when number of elements are given?
What is a stream water?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What is c language and why we use it?
What is the difference between struct and typedef struct in c?