Interview Questions   Tutorials   Discussions   Programs   

C - How do you print the word "hello world" without using "printf" statement?




381
views
asked marvit August 18, 2014 10:15 AM  

How do you print the word "hello world" without using "printf" statement?


           

1 Answers



 
answered By bhjahnavi   0  

/* to print a message without using printf statement*/
#include<stdio.h>
#include<string.h>
void main()
{
  puts("hello world");
  return 0;
}
output: hello world
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert