see

A

WAP to find the length of input string without using strlen function.



WAP to find the length of input string without using strlen function.


#include<stdio.h>
#include<conio.h>
void main()
{
  char a[60];
  int i=0,z,j,count=0;
  clrscr();
  scanf("%s",&a);
  while(a[i]!='\0')
  {

  count++;
  i++;
  }
  printf("%s",a);
  printf("%d",count);
  getch();
}

Copyright © 2013. BloggerSpice.com - All Rights Reserved
Customized by: MohammadFazle Rabbi | Powered by: BS
Designed by: Tilabs