can i know what does 'occurence of characters & special characters like \n,\t ,white spaces given text input' mean . can i know the code for writing this program?

It means how you'll have to program something that counts all the character in a word/sentence including whitespaces and newline/tab characters.

. can i know the code for writing this program?

Yes. You. Can! :)

Put you'll have to put in some effort first. Come back when you have some code to show, or some specific question

is the code for that this one
if(str='\n')
c1++;
if str='\t')
c2++;
printf("the no of new line cahracters are \n");
printf("the no of new tab positions is %d\n");
getch();
}

no.

Here's a thread about " starting c". And here's one on arrays.

There's just too much wrong with your code to give you any better advice.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.