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
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What are the types of assignment statements?
What is union and structure?
can anyone please tell about the nested interrupts?
Why is c platform dependent?
how logic is used
what is the difference between class and unio?
What is the purpose of sprintf() function?
Combinations of fibanocci prime series
how to create duplicate link list using C???
What are the 4 types of organizational structures?
Describe the order of precedence with regards to operators in C.
write an algorithm to display a square matrix.