some more questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • supriti
    New Member
    • Aug 2007
    • 4

    some more questions

    q.

    recursive function
    count(n){
    if count<=1
    then result = 1;
    else
    result = count(n-3) + count(n-1)
    }
    for count(6) ans is:
    a. 3
    b. 6
    c. 9
    d. 12
    q

    #define putchar(%f,c)
    int c='d';
    putchar(c);
    what is the output?
    a. ,b. some numbers
    c. compiler error
    d. segmentation error

    q

    file a
    test()
    { int a; }
    file b
    void main(void)
    { int b;
    b= test();
    }
    what is the output
    a. a
    b. b
    c. not compiled,error
    d. compiles sucessfully,but give linker error
  • Meetee
    Recognized Expert Contributor
    • Dec 2006
    • 928

    #2
    Do not double post. Please read posting guidelines

    Comment

    Working...