2
Answers

C Programmers please help

sami sam

sami sam

12y
1.2k
1
/* Write a program that will count up the number of characters in a string.
Do not use the strlen function*/

#include <stdio.h>
#include <string.h>
chars s[80]
int i;
int main () {
  strcpy(s, "Hi");
  i = 0;
  while(s,[i] 1 = '\0') {
  i++;
  }
  printf{"Hi %d\n",i);
 
Answers (2)