Do not use the strlen function*/
#include
#include
chars s[80]
int i;
int main () {
strcpy(s, "Hi");
i = 0;
while(s,[i] 1 = '\0') {
i++;
}
printf{"Hi %d\n",i);
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 7, 2012, 3:32 AM EDT
sami sam39 reputationPosted Aug 7, 2012, 3:43 AM EDT
thanks a lot