+120

If you 😀 are still good with C language 😎, Decode the following code and guess the output of my code ? 😊

#include<stdio.h> void main() { int i; int b[]={72,97,112,112,121,32,78,101,119,32,89,101,97,114,32,50,48,49,55,'\0'}; for(i=0;b[i];i++) { printf("%c",b[i]); } } 😋😋😋😋

12/30/2016 6:19:08 AM

Jenny Lance

81 Answers

New Answer

+34

Pretty dank way to state Happy New Year 2017

+10

happy new year

+10

New year has passed almost a month... Happy New Year 2017 Happy Coding

+10

Happy new year! (over a month of delay) o.O https://code.sololearn.com/WAOZPremswKF/#

+8

Happy New Year

+8

@Tristen well done !

+7

Happy New Year 2017 That's the output Here the ascii values of those charecters are printed using %c(char) format specifier

+7

Did this in my head. Am conflicted by that.

+6

Happy new year

+4

C was the first Programming Language came into the market 😎 Right ?? 😋

+3

Happy new year 2017 it is so easy to understand you wrote '\0' if you write 0 instead of it in last it will also work

+2

Of course Happy New Year

+2

Output is: Happy New Year 2017

+2

SIMPLE and SWEET ASCII conversion! 😅

+2

happy new year, 👍 see my decoding code that's for binary in this case it's already ASCII codes of text

+2

damn good!! i am just beginner to c

+2

hi everybody

+2

Jenny Lance is pretty.😊

+1

happy new year .............💃💃💃

+1

Output is: Happy New Year 2017