Wednesday, July 15, 2009

C Program


C Program


C Program is a most popular programming language in the world , still now 'C' rules the programming world. At first Dennis rithchie implemented the C program in UNIX OS. First described the C Programming Language by Brian Kernighan and Dennis Ritchie (Englewood Cliffs, N.J.: Prentice-Hall, 1978) . In the summer of 1983 a committee was established to create an ANSI (American National Standards Institute) standard that would define the C program language.
C Program is a middle level computer language and structured language . Disadvantage of C Programming language is hard to read,find bug .. etc. when the C Program contains more than 1000 lines of code.C programming is used to create mobile software,embedding systems .. etc. C Program is the Heart and Father of the Programming language.
C Program is the basic programming language for all the upcoming language but its not easy to learn all .C Program is like a Sea ..we need to swim a lot....
Find length of the String Using C Program
#include
#include
void main()
{
char aStr[50];
int iI;
printf("Enter the String(50 char) : ");
gets(aStr);
for(iI=0; aStr[iI] ! = '\0' ; iI++);
printf("\n Length of the string is %d",iI);
}
point out the errors by comments

No comments:

Post a Comment