1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

output please

Discussion in 'C' started by gpk kishore, Jul 27, 2011.

  1. gpk kishore

    gpk kishore New Member

    Joined:
    Jun 30, 2011
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    0
    #include<stdio.h>
    #include<math.h>
    void main(x)
    {
    clrscr();
    printf("%d",x=(pow(printf("hi\r"),-~x)));
    getch();
    }
     
  2. herby

    herby New Member

    Joined:
    Jan 6, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    your output will be 9i if u declare x as an integer. Else its obvious compilation error. Besides i wonder why u make functions like pow to return an integer yet its return type is a double or atleast a float
     

Share This Page