Answers for "count=function(a,b); printf(" ...", count); Warning: too many arguments in the format"

0

count=function(a,b); printf(" ...", count); Warning: too many arguments in the format

"arguments" in the warning are "a,b and count", therefore result in "too many"
Solution:
  Option 1: e.g. printf("Count number of %c in %s is %d\n", target,str,my_count);
  
  Option 2:e.g. a=fun(ch, str);
                b=a;
                printf("Count number is %d",b);
Posted by: Guest on April-09-2022

Browse Popular Code Answers by Language