HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   Help me in c (http://www.howtoforge.com/forums/showthread.php?t=40779)

Abigail 7th November 2009 11:59

Help me in c
 
Hi Everyone,
Can you give me some good Example?
This Example will print the Hello without using printf.
It is possible.
Can you help me?

pinguinito 10th November 2009 06:14

C "hello.c"
 
#include <stdio.h> /* this is C */

main()
{
printf("Hello, Word!\n");
return 0;
}



// Now in C++.

#include <iostream>
int
main()
{
std:: cout<<"!Bienvenido a C++!\n";
return 0;
}

I hope this help Editor "vi" then gcc for C g++ for C++ for compiler

vinopavit 10th December 2009 02:22

If u find the answer say me
 
I think it is not possible to print without printf statement :eek:

bfasula 14th December 2009 17:28

#include <stdio.h>
main()
{
putchar('h');
putchar('e');
putchar('l');
putchar('l');
putchar('o');
putchar('\n');
}
~


All times are GMT +2. The time now is 14:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.