Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » String Manipulation in C Program
Closed Thread
Old 04-23-2005, 05:04 PM   #1 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 145

Mohan Giri

Default String Manipulation in C Program

Hai,
I need some clarification in String Manipulation in C Language. If we assign a string explicitly using { } and ' '(Single Quotes) whether we have to specifically assign NULL character at last or not?

Then If we assign a string more than the string length using whether it will accept the all characters or display error message like "Too many Initializers in function" ?
Mohan Giri is offline  
Old 05-03-2005, 05:42 PM   #2 (permalink)
 
Ultra Techie

Join Date: Apr 2005

Posts: 950

M4A1 is on a distinguished road

Send a message via AIM to M4A1
Default

Assigning a string with a null means that the String contains no reference value. Also, you cannot assign more values more than the string length.

Java supports the class ArrayList, which is an array that is expandable if it needs to be expandable. You can learn more about it here:
http://java.sun.com/j2se/1.3/docs/ap...ArrayList.html

It also as neat methods that can add, delete, etc values at certain indexes.

Cheers.
M4A1 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On