Test your Coding Ability

Report
Poll

Please briefly explain why you feel this question should be reported .

Report
Cancel

Results

What will be the output of the below program?

#include<stdio.h>
int main()
{
printf(“%d”, printf(“%d”, printf(“%d”, printf(“%s”, “Welcome to PlacementSeason”))));
return (0);
}



in progress 1
Aptitude Admin 10 months 4 Answers 1385 views 1

Answers ( 4 )

  1. Admin

    Please briefly explain why you feel this answer should be reported .

    Report
    Cancel

    Answer: D

    Solution:

    The program first prints the innermost printf(). i.e. Welcome to PlacementSeason . Then it prints number character successfully printed. i.e 26 . Then again it prints number character successfully printed. i.e 2. Then it prints number character successfully printed. i.e. 1
    So, the answer is Welcome to PlacementSeason2621

  2. Please briefly explain why you feel this answer should be reported .

    Report
    Cancel

    Tricky One

  3. Please briefly explain why you feel this answer should be reported .

    Report
    Cancel

    D

  4. Please briefly explain why you feel this answer should be reported .

    Report
    Cancel

    B.000welcome to placement season

Leave an answer

Browse

Captcha Click on image to update the captcha .