GeeksforGeeks » Interview Questions

Honeywell Interview Question for Software Engineer/Developer (Fresher) about CPuzzles

(4 posts)

Tags:

  1. Rick
    guest
    Posted 1 year ago #

    for(i=0; i<=10; i++, printf("%d",i));

    output?

  2. Venki
    Moderator
    Posted 1 year ago #

    For loop flow

    Initialize
    check condition
    if false goto end
    next:
    execute body
    update index (here is our output statement)
    check condition
    if false goto end
    else
    goto next
    end:

  3. Ankul
    guest
    Posted 1 year ago #

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

  4. Vick
    Member
    Posted 1 year ago #

    hey ANKUL your answer is correct but there is no '\n' in printf so the output will be printed in one line :)


Reply

You must log in to post.

RSS feed for this topic