Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Result is only TRUE. #3377
    niklaesh
    Participant

    @Gramdtante wrote:

    Hello,you are not trying to print the result, as you can see variable res stores the result of the multiplication, but your are printing the result anywhere….You showResult function should look like

    in reply to: How do I use char* variable type in C? #3266
    niklaesh
    Participant

    Hello
    try this code.

    As you have declared a pointer which points a character.
    char* yourName;
    Now you are getting a value from the user and trying to store it in pointer type variable. scanf() function takes the address of the variable i.e. pointer to that variable and store the input. As you have already declared the pointer and you code scanf(“%s”, &yourName); is trying to save that input value in the address of that pointer. Which is logically incorrect. Your code looks fine and no error but it has a logical mistake that is why it compiles fine but gives error at runtime. You code should look like scanf(“%s”, yourName);
     

    • This reply was modified 9 years, 5 months ago by M. Saqib.
    • This reply was modified 9 months, 2 weeks ago by M. Saqib.
    in reply to: hardware interaction #3196
    niklaesh
    Participant

    Hello,
    U can make a program that displayes some graphics on the LCD. Or it outputs data using some LAser Light devices.

    in reply to: What’s your favorite software? #3189
    niklaesh
    Participant

    Internet Explorer for web browsing.
    Cown Jet-Adio for MP3s music and movies.
    Chatting – Yahoo Messenger
    Also Gaim for multi yahoo and multi msn sessions
    File Compression – WinRAR
     

    in reply to: getche() nd getchar() #3183
    niklaesh
    Participant

    As far as i know, getche() function echos the character on the screen. and getchar() returns teh next character.
    When u press Enter Button it returns ASCII value 10 and ASCII value 10 is the orignal n character.
    And you know on the STDIO when u press enter button it means a n character.
    This is my idea. Any one else migh have the correct answer.

    in reply to: how to swap a string #3175
    niklaesh
    Participant

    Bloodrager he didnt mention that he wanted to get input from the user. I made the programme according to the cituation he placed in the post.
    Any how thanks for correcting me about “<" ">“, actualy that is mys style of coding. I will try to adopt the changes.
    Thanks

    in reply to: Windows, Mac or Linux? #3120
    niklaesh
    Participant

    What is ‘Best’ ? In what respect ?
    If a user can find one task which can only be done by one but not by the others, then that one is the “best” for that moment, for that user. As always, “The Best Is Yet To Be.”

Viewing 7 posts - 1 through 7 (of 7 total)