Search:

Type: Posts; User: std10093

Search: Search took 0.03 seconds.

  1. Replies
    30
    Views
    3,147

    Raja I told you to read the whole posts! If you...

    Raja I told you to read the whole posts! If you to post number 4, you see that I said to use
    %s for strings in scanf !

    Glad you have no errors :)
  2. Replies
    30
    Views
    3,147

    As Adak said, you have to do that AND to have...

    As Adak said, you have to do that AND to have enough space in your arrays.
    This


    char grade_electronics[1];

    can have only one character!!!! And what about the null terminator of the strings...
  3. Replies
    30
    Views
    3,147

    Adak, I have already "liked" it ;) @Raja, too...

    Adak, I have already "liked" it ;)

    @Raja, too many said, take a 5min break and think of what was said. Then try to debug :)
  4. Replies
    30
    Views
    3,147

    In C, we can not assign a variable with a string...

    In C, we can not assign a variable with a string by the equal (=) operator.

    We have to use functions from string.h, like strcpy.

    Or you have to do it as Adak said.

    Adak, I guess google...
  5. Replies
    30
    Views
    3,147

    That's exactly an array of 20 characters :)

    That's exactly an array of 20 characters :)
  6. Replies
    30
    Views
    3,147

    As far as I know, this char name[20]; is...

    As far as I know, this


    char name[20];

    is an array of 20 characters.
  7. Replies
    30
    Views
    3,147

    One more beginner's tip : Read the whole posts....

    One more beginner's tip :
    Read the whole posts. The words are there, because they have something to say.
    When you are asked about something, answer honestly!
    You said you changed what I said, but...
  8. Replies
    30
    Views
    3,147

    Did you change what I said?

    Did you change what I said?
  9. Replies
    30
    Views
    3,147

    Ok, beginner's tips about to come :) We write...

    Ok, beginner's tips about to come :)

    We write
    int main(void) and not
    void main()
    When you want to read a string into a char array you do it like this


    scanf("%s", name);
  10. Replies
    30
    Views
    3,147

    Welcome to the forum!! Of course, here there...

    Welcome to the forum!!

    Of course, here there are many very good programmers, who, for sure, can say something about every code they see!

    Post your code in code tags
    /*your program*/
    replace...
Results 1 to 10 of 10