+ 124

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]); } } 😋😋😋😋

30th Dec 2016, 6:19 AM
Jenny Lance
Jenny Lance - avatar
79 Answers
+ 36
Pretty dank way to state Happy New Year 2017
30th Dec 2016, 7:30 AM
Wen Qin
Wen Qin - avatar
+ 15
New year has passed almost a month... Happy New Year 2017 Happy Coding
8th Feb 2017, 8:49 PM
Jenny Lance
Jenny Lance - avatar
+ 11
Happy new year! (over a month of delay) o.O https://code.sololearn.com/WAOZPremswKF/#
8th Feb 2017, 9:15 PM
Tristan McCullen
Tristan McCullen - avatar
+ 11
@Tristen well done !
14th Mar 2017, 7:40 AM
Jenny Lance
Jenny Lance - avatar
+ 10
happy new year
30th Dec 2016, 4:31 PM
Kavya Sree
Kavya Sree - avatar
+ 8
Happy New Year
30th Dec 2016, 1:32 PM
Saumya
Saumya - avatar
+ 7
Happy New Year 2017 That's the output Here the ascii values of those charecters are printed using %c(char) format specifier
30th Dec 2016, 6:31 AM
Jawwad Hossain
Jawwad Hossain - avatar
+ 7
Did this in my head. Am conflicted by that.
15th Jan 2017, 9:36 AM
Kirk Schafer
Kirk Schafer - avatar
+ 6
Happy new year
30th Dec 2016, 6:01 PM
B Shardiya
+ 5
C was the first Programming Language came into the market 😎 Right ?? 😋
6th Feb 2017, 8:47 PM
Jenny Lance
Jenny Lance - avatar
+ 3
Output is: Happy New Year 2017
31st Dec 2016, 2:57 AM
Ravikiran Singh
+ 3
hi everybody
14th Feb 2017, 11:01 AM
陈立
陈立 - avatar
+ 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
10th Jun 2017, 6:53 AM
Azam
Azam - avatar
+ 3
Jenny Lance is pretty.😊
23rd Jun 2017, 6:11 AM
Nwankwo Ugochukwu Samuel
Nwankwo Ugochukwu Samuel - avatar
+ 2
Of course Happy New Year
30th Dec 2016, 8:39 AM
Saksham Beniwal
Saksham Beniwal - avatar
+ 2
Output is: Happy New Year 2017
31st Dec 2016, 2:57 AM
Ravikiran Singh
+ 2
SIMPLE and SWEET ASCII conversion! 😅
31st Dec 2016, 6:18 AM
Jeevan Jyoti
Jeevan Jyoti - avatar
+ 2
happy new year, 👍 see my decoding code that's for binary in this case it's already ASCII codes of text
27th Jan 2017, 5:53 PM
Sandeep Chatterjee
+ 2
damn good!! i am just beginner to c
7th Feb 2017, 2:37 PM
Rushikesh Koli
Rushikesh Koli - avatar
+ 2
how ?
14th Mar 2017, 4:54 AM
Prashanth Sridhar
Prashanth Sridhar - avatar