Sponsored Links

Results 1 to 2 of 2

Thread: In C++ is SPACE is also a charactor??

  1. #1

    Icon14 In C++ is SPACE is also a charactor??

    Sponsored Links1

    Dear Sir, i tried to display my name through arrays in previous lectures and i successfully did that. but no i tried to display my complete name through arrays like TARIQ MEHMOOD. in this case only tariq is printed on the screen where as mehmood is skipped away. what is the solution to display my complete name including space?????

    Sponsored Links

  2. #2
    Dear student!
    You should check initialization of array. String array can be initialised at the time of declaration just as other variables are initialised. For example:
    char s1[] = "example";
    char s2[20] = "another example" would store the two strings as follows:

    s1 |e|x|a|m|p|l|e|\0|
    s2 |a|n|o|t|h|e|r| |e|x|a|m|p|l|e|\0|?|?|?|?|

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Institute of Space Technology, Islamabad Information details 2013-14
    By education-2013 in forum Other universities
    Replies: 0
    Last Post: 09-30-2013, 03:10 PM
  2. The first woman in space
    By vustudents in forum English Fa/FSC/ICS/I.com
    Replies: 0
    Last Post: 09-07-2011, 02:47 AM
  3. Replies: 0
    Last Post: 08-25-2011, 09:04 PM
  4. Space travel
    By vustudents in forum Announcements
    Replies: 0
    Last Post: 03-07-2011, 03:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft | Jobs