Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
13 ES 26 - Strings

13 ES 26 - Strings

Ratings: (0)|Views: 58|Likes:
Published by Wilmarc

More info:

Published by: Wilmarc on Aug 27, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/03/2010

pdf

text

original

 
 
Introduction to Programming
StringsStrings
1313
 
 
Introduction to Programming
StringsStrings
In C, strings like “hello” are just arraysof charactersA string is terminated by the
sentinelstring character '
\0 ', or null characterwhich may NOT be the last element inthe arrayNull character: backslash-
 zero
 This is the only character whose bits areall zeroes
 
 
Introduction to Programming
Implicit StringsImplicit Strings
Created by enclosing some text withindouble quotation marks.Compiler creates a
hidden
char array torepresent the characters and ensuresthat a '\0' is placed after the lastcharacter in the string.ex.: printf(“Welcome\n”);
Welcome\n\0

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->