Question: c programming 1)(5 points) Consider the code int m= 0, k; char *v; gets(v); for(k=0; v[k] != '0'; k++) printf(%d , m); However, part of
1)(5 points) Consider the code int m= 0, k; char *v; gets(v); for(k=0; v[k] != '\0'; k++) printf("%d ", m); However, part of the code is missing (indicated by ). The code is supposed to give the integer sum of the characters in the input string e.g. for the input "1234" it gives 10 Fill in the missing part
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
