about 5 years ago
String is a collection of characters in an array.It is terminated by by \0 (null character)
There are two ways to declare string in c language.
1)By char array
declaring string by char array is as follows:
char ch[10]={'e','v','o','n', '\0'};
2)By string literal
declaring string by string literal is as follows:
char ch[]="Evon Tech";
String Example
#include <stdio.h> void main () { char ch[11]={'e', 'v', 'o', 'n', 't', 'e', 'c', 'h', '\0'}; char ch2[11]="Evon Tech"; printf("Char Array Value is: %s\n", ch); printf("String Literal Value is: %s\n", ch2); }
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)