User Profile

Collapse

Profile Sidebar

Collapse
supriti
supriti
Last Activity: Aug 23 '07, 06:53 AM
Joined: Aug 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • supriti
    started a topic some more questions
    in C

    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

    ...
    See more | Go to post

  • supriti
    replied to Loop optimization and execution
    in C
    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

    ...
    See more | Go to post

    Leave a comment:


  • supriti
    started a topic Loop optimization and execution
    in C

    Loop optimization and execution

    th equestion goes like

    Q1.

    for(i=0;i<=50;, i++)
    for(j=0;,j<=100 ,j++)

    for(j=0;j<=100; ,j++)
    for(i=0;i<=50,i ++)

    for these type of loop which will be faster ??

    options are
    same
    first
    second
    depends on s/w and h/w

    Q2

    #define putchar(%f,c)
    int c='p'';
    putchar(c);

    what...
    See more | Go to post
No activity results to display
Show More
Working...