Results 1 to 22 of 22
  1. Collapse Details
    A question about C 
    #1
    fams casino Dustin's Avatar
    Join Date
    Dec 2011
    Posts
    3,769
    Which functions are allowed to have no (not even void) return value? Is main one of them? Constructor. No return type. No return statement. Main doesn't need a return value
    Reply With Quote
     

  2. Collapse Details
     
    #2
    General Doli
    king steveyos
    whho the fuck are you
    Reply With Quote
     

  3. Collapse Details
     
    #3
    fams casino Dustin's Avatar
    Join Date
    Dec 2011
    Posts
    3,769
    Quote Originally Posted by General Doli View Post
    whho the fuck are you
    You know its really rude to answer a question with a question. However, I am the son of the black dragon. Since he hardly posts it is my duty to uphold the Worldly duties of the black dragon.
    Reply With Quote
     

  4. Collapse Details
     
    #4
    ᕦ(ò__ó)ᕤ rootbeer's Avatar
    Join Date
    Dec 2011
    Location
    Iron Hands fried chicken Chiang Mai technical college
    Posts
    11,875
    we dont talk about dragons
    Reply With Quote
     

  5. Collapse Details
     
    #5
    fams casino Dustin's Avatar
    Join Date
    Dec 2011
    Posts
    3,769
    Quote Originally Posted by rootbeer View Post
    we dont talk about dragons
    No one is.
    Reply With Quote
     

  6. Collapse Details
     
    #6
    ᕦ(ò__ó)ᕤ rootbeer's Avatar
    Join Date
    Dec 2011
    Location
    Iron Hands fried chicken Chiang Mai technical college
    Posts
    11,875
    Reply With Quote
     

  7. Collapse Details
     
    #7
    fams casino Dustin's Avatar
    Join Date
    Dec 2011
    Posts
    3,769
    Quote Originally Posted by Cody View Post
    LIES!
    Its not lies, being an underground 1337 hacker with Clay and our newly formed team " S3C5I0N 1337" You'll find that all talk about dragons can be done in the dragon sub forum which I just made
    Reply With Quote
     

  8. Collapse Details
     
    #8
    fams casino Dustin's Avatar
    Join Date
    Dec 2011
    Posts
    3,769
    Quote Originally Posted by Cody View Post
    You just wait until Chronic Munchies hears about this outrage.
    About what our super l33t team? Or the dragon sub forum, which I'm not sure how anyone could be mad at that...
    Reply With Quote
     

  9. Collapse Details
     
    #9
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,256
    VOID MAIN VOID HELLO WORLD
    Reply With Quote
     

  10. Collapse Details
     
    #10
    fams casino Dustin's Avatar
    Join Date
    Dec 2011
    Posts
    3,769
    Quote Originally Posted by maks View Post
    VOID MAIN VOID HELLO WORLD
    Void is not a type of value a function returns. "void function();" mean "function" will not return any value
    Reply With Quote
     

  11. Collapse Details
     
    #11
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,256
    PRINTF \N
    Reply With Quote
     

  12. Collapse Details
     
    #12
    fams casino Dustin's Avatar
    Join Date
    Dec 2011
    Posts
    3,769
    int main( int argc, char**argv ) {
    int x = 5;
    return 0;
    }
    Reply With Quote
     

  13. Collapse Details
     
    #13
    Senior Member fanfare's Avatar
    Join Date
    Dec 2011
    Posts
    807
    jeez that vid made me laugh
    Reply With Quote
     

  14. Collapse Details
     
    #14
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,256
    #INCLUDE <CARE.H>
    Reply With Quote
     

  15. Collapse Details
     
    #15
    Array
    Join Date
    Dec 2011
    Location
    Array
    Posts
    7
    #define VAL_1X 42
    #define VAL_2X VAL_1X, VAL_1X
    #define VAL_4X VAL_2X, VAL_2X
    #define VAL_8X VAL_4X, VAL_4X
    #define VAL_16X VAL_8X, VAL_8X
    #define VAL_32X VAL_16X, VAL_16X
    #define VAL_64X VAL_32X, VAL_32X

    int myArray[53] = { VAL_32X, VAL_16X, VAL_4X, VAL_1X };
    Reply With Quote
     

  16. Collapse Details
     
    #16
    autumn dragon reno's Avatar
    Join Date
    Dec 2011
    Location
    co-op cock torture
    Posts
    830
    math is more autistic than general dolloly
    disappointing you is getting me down



    Reply With Quote
     

  17. Collapse Details
     
    #17
    The Realest Nigga Alive Blaze Master 420 #bout_it's Avatar
    Join Date
    Dec 2011
    Posts
    108
    Quote Originally Posted by reno View Post
    math is more autistic than general dolloly
    #forreal #most_unfunny_poster #exposed #massive_ownage
    big shit poppen lil shit droppen smoken mad dank out of a 6 foot bong errday bitch you is so ugly change yo face and maybe you can ride with a real mac og you ugly stank skuttle bucket god damn blowne on that mad og mango berry kush high as fuck put a gun in my mouth because i like the way that shit tastes #holla #bout it #420 #weed #yaboi

    Reply With Quote
     

  18. Collapse Details
     
    #18
    General Doli
    king steveyos
    #hashtags lol
    Reply With Quote
     

  19. Collapse Details
     
    #19
    General Doli
    king steveyos
    If u want 2 fuck with me Whoever you are.... back the fuck away
    Reply With Quote
     

  20. Collapse Details
     
    #20
    friends with english jon's Avatar
    Join Date
    Dec 2011
    Location
    alcatraz
    Posts
    4,510
    Quote Originally Posted by Synthetics View Post
    Which functions are allowed to have no (not even void) return value? Is main one of them? Constructor. No return type. No return statement. Main doesn't need a return value
    uh any function

    Code:
    #include <stdio.h>
    
    foo()
    {
      printf("foo");
    }
    
    main()
    {
      foo();
      printf("bar\n");
    }
    Code:
    jon@wroth:~/sandbox$ gcc -Wall -ansi -pedantic idiot.c
    idiot.c:4: warning: return type defaults to 'int'
    idiot.c: In function 'foo':
    idiot.c:6: warning: control reaches end of non-void function
    idiot.c: At top level:
    idiot.c:9: warning: return type defaults to 'int'
    idiot.c: In function 'main':
    idiot.c:12: warning: control reaches end of non-void function
    jon@wroth:~/sandbox$ ./a.out
    foobar
    and there are no constructors in C
    Reply With Quote
     

  21. Collapse Details
     
    #21
    friends with english jon's Avatar
    Join Date
    Dec 2011
    Location
    alcatraz
    Posts
    4,510
    and they do have a return value even though you are allowed to skip its declaration, as you can plainly see from the warnings, and that default return value is int
    Reply With Quote
     

  22. Collapse Details
     
    #22
    DogManz maks's Avatar
    Join Date
    Dec 2011
    Location
    Lud, Midworld
    Posts
    99,256
    I'll foo your bar
    Reply With Quote
     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

monde is a whiney fuck