String length in C Programming Tamil


#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
    //a="tutorjoes\0";
	char *a,i,n=0;
	clrscr();
	printf("\nEnter the String :");
	gets(a);
	printf("\nInbulit Function : %d",strlen(a));
	for(i=0;a[i]!='\0';i++)
	{
		n++;
	}
	printf("\nUser Function : %d",n);
	getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming