locked
whats the output!!!! RRS feed

  • Question



  • main()
    {
    printf("%d",printf("hello"));
    }

    Tuesday, October 2, 2007 5:49 PM

All replies


  • I think hello5
    Wednesday, October 3, 2007 5:23 AM
  • Hello5

    as printf returns the length of string and printf("Hello") is executed first..

     

    Friday, October 5, 2007 6:30 AM


  • hi i think it will show u an error...
    Friday, October 5, 2007 9:04 AM
  •  

    @Abdul..

         It Will not show any error ... ! Hello 5 Will be printed !!

    Sunday, October 7, 2007 2:27 AM
  •  

    ya the ouptut is hello5

     

    cause printf() returns the number of characters printed.

     

    Sunday, October 7, 2007 8:19 PM