We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
same issue I have, submitted code and failed but I ran it against custom input and it turned out as successful compilation.
int main()
{
int w = 3;
long n = 12345678912345;
char ch = 'a';
float f = 334.23;
double d = 14049.30493;
printf("%d \n %ld \n %c \n %4.3f \n %4.9lf", w, n, ch, f, d);
return 0;
}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Basic Data Types
You are viewing a single comment's thread. Return to all comments →
same issue I have, submitted code and failed but I ran it against custom input and it turned out as successful compilation.
int main() { int w = 3; long n = 12345678912345; char ch = 'a'; float f = 334.23; double d = 14049.30493; printf("%d \n %ld \n %c \n %4.3f \n %4.9lf", w, n, ch, f, d); return 0; }