Multiple Method To Separate The Character From A String In C Program Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
	char name[]="tutorjoes";
	char *ptr;
	int i=0;
	clrscr();
	// 1st method
	while(i<=8)
	{
		printf("%c",name[i]);
		i++;		// www.tutorjoes.com
	}
	// 2nd method
	while(name[i]!='\0')
	{
		printf("%c",name[i]);
		i++;		// www.tutorjoes.com
	}
	//3rd method
	ptr=name;	//base address of the string
	while(*ptr!='\0')
	{
	printf("%c",*ptr);
	ptr++;
	}
	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