Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
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: 639|Likes:
Published by Wilmarc

More info:

Published by: Wilmarc on Aug 28, 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

08/04/2010

pdf

text

original

 
 
Introduction to Programming
StringsStrings
1313
 
 
Introduction to Programming
StringsStrings
In C, strings like “hello” are just arrays of characters A string is terminated by the
sentinel string character ' 
\0 ', or null character which mayNOT be the last element in the arrayNull character: backslash-
zero 
This is the only character whose bits are allzeroes
 
 
Introduction to Programming
Implicit StringsImplicit Strings
Created by enclosing some text within doublequotation marks.Compiler creates a
hidden 
char array torepresent the characters and ensures that a'\0' is placed after the last character in thestring.ex.: printf(“Welcome\n”);
Welcome\n\0

You're Reading a Free Preview

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