Results 1 to 13 of 13

Thread: Reason for the following programm's output!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Expert Member
    Join Date
    May 2008
    Answers
    100

    Thumbs up Re: Reason for the following programm's output!

    you must write it as
    printf("%d %d",a,b);
    or it may also happen that you have written
    printf("%d %d",b,a);


  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    1

    Re: Reason for the following programm's output!

    if u r written exactly the code u r showing then its not known what value is printed cuz its just compiler dependent that when it does not find the value to be printed for a format specifier, then what shud it do?
    and otherwise if u have written printf("%d%d",b,a);
    then the result is right.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact