Search:

Type: Posts; User: Ashl7

Search: Search took 0.01 seconds.

  1. Replies
    29
    Views
    2,011

    and why does this one prints out AB?! it should...

    and why does this one prints out AB?! it should be A itself, since the character in slot 0 is A!!!

    #include <stdio.h>

    int main()
    {
    char *ch;
    char vch[]={'A','B','\0','C','\0'};
    ...
  2. Replies
    29
    Views
    2,011

    Hey all can anyone explain to me why this...

    Hey all
    can anyone explain to me why this program output is AB?
    I mean I think it should be ABC?! shouldn't it?!

    #include <stdio.h>

    int main()
    {
    char *ch;
    char...
  3. Replies
    29
    Views
    2,011

    I had some question not related to programming...

    I had some question not related to programming this time
    Is it necessary to take C++ before taking Java?! is it going to be hard to understand Java if I don't learn C++ in advance?! which one is...
  4. Replies
    29
    Views
    2,011

    Thank you aaaalllll... really helped me out here...

    Thank you aaaalllll... really helped me out here :)
    STD, the examples were just great!
  5. Replies
    29
    Views
    2,011

    lol I read that before, but I'm still...

    lol I read that before, but I'm still confused!!!!!!!!!!
  6. Replies
    29
    Views
    2,011

    questions pouring up... confirm if this is true:...

    questions pouring up...
    confirm if this is true:
    char f[3];
    first character goes to slot 0, second goes to slot 1, third to slot 2, forth is a null character which goes to slot 3.(is it true?)...
  7. Replies
    29
    Views
    2,011

    another thing... is there any difference between...

    another thing...
    is there any difference between an array of characters, and string (and c-style string)?! I mean char i[10] is what we call a string, meanwhile it's an array of characters, right?!...
  8. Replies
    29
    Views
    2,011

    ok so arrays work like pointers, right?! there is...

    ok so arrays work like pointers, right?! there is no need for & in scanf?!
  9. Replies
    29
    Views
    2,011

    I guess one reason we use fgets is scanf doesn't...

    I guess one reason we use fgets is scanf doesn't read the words after "space"!!!!!!
  10. Replies
    29
    Views
    2,011

    tnx for the answers...have another one: why do...

    tnx for the answers...have another one:
    why do we have to use fgets, when using strings?!
    I mean I am using scanf here and it works totally fine!!!!
    #include <stdio.h>

    int main()
    {
    char...
  11. Replies
    29
    Views
    2,011

    HUH! hard to grasp :/

    HUH! hard to grasp :/
  12. Replies
    29
    Views
    2,011

    Primary Questions

    Hey all, used this forum a couple weeks ago and it was great...have a couple of questions about arrays right now...

    I have this code:


    #include <stdio.h>
    #include<stdlib.h>
    int main()
    {...
Results 1 to 12 of 12