473,657 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print without using any inbuilt function?

How can i print anything without using printf( ) or anyother inbuilt
function calls??

Dec 8 '06 #1
13 3313
"ragav" <sr************ ***@gmail.comwr ites:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
Use a pen and paper.

Questions of the form "How can I do X without using Y", where Y is the
obvious way to do X, are almost invariably homework.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 8 '06 #2
ragav wrote:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
printf() is not in-built in the C language. There's no portable answer
to your question. Under _certain_ systems, you may be able to print to
the display by writing character code values into the video memory, but
ask further questions in this regard to more system specific groups.

Dec 8 '06 #3
ragav said:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
printf( ) isn't an inbuilt function call. It's just a function call.

If you don't want to use printf, use vprintf or vfprintf or puts or putchar
or putc or fputc or even fwrite. None of these are inbuilt function calls.

What's wrong with printf, anyway? Don't you like it?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Dec 8 '06 #4
"santosh" <sa*********@gm ail.comwrote:
ragav wrote:
How can i print anything without using printf( ) or anyother inbuilt
function calls??

printf() is not in-built in the C language.
Yes, it is. It's defined in the ISO C Standard, which: "specifies the
form and establishes the interpretation of programs written in the C
programming language."

Richard
Dec 8 '06 #5
ragav wrote:
>
How can i print anything without using printf( ) or anyother inbuilt
function calls??
You could use the putc macro if there is one,
but in order to ensure that putc is a macro
and that it also does not make a call to a built in function,
you would also need a genie.

--
pete
Dec 8 '06 #6
In article <11************ **********@80g2 000cwy.googlegr oups.com>,
ragav <sr************ ***@gmail.comwr ote:
>How can i print anything without using printf( ) or anyother inbuilt
function calls??
You could use FORTRAN.

-- Richard

--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Dec 8 '06 #7

ragav wrote:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
Write an assembly module.

Dec 8 '06 #8
Richard Bos wrote:
"santosh" <sa*********@gm ail.comwrote:
ragav wrote:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
printf() is not in-built in the C language.

Yes, it is. It's defined in the ISO C Standard, which: "specifies the
form and establishes the interpretation of programs written in the C
programming language."
Not for freestanding implementations .

Dec 8 '06 #9

ragav wrote:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
It depends on what you mean by 'print'. The following program:

#error Hello, world!

will generate a diagnostic when compiled with a conforming C compiler;
this diagnostic may quite possibly meet your definition of 'print'.

--
ais523

Dec 8 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4916
by: Geert-Pieter Hof | last post by:
Hello, I'm using the Printer.PaintPicture method to print an image and I want to set the job title that the print manager will show. I already found out that this can be done by using the StartDoc API function. However, I can't figure out how to set the job title by API and do the printing of the image without using API but by using the Printer.PaintPicture method.
12
2393
by: Michael Foord | last post by:
Here's a little oddity with 'print' being a reserved word... >>> class thing: pass >>> something = thing() >>> something.print = 3 SyntaxError: invalid syntax >>> print something.__dict__ {}
0
1004
by: km | last post by:
Hi all, I which context is the inbuilt function buffer() used ? regards, KM
14
2903
by: Marcin Ciura | last post by:
Here is a pre-PEP about print that I wrote recently. Please let me know what is the community's opinion on it. Cheers, Marcin PEP: XXX Title: Print Without Intervening Space Version: $Revision: 0.0 $
2
16042
by: Raja | last post by:
IS there any inbuilt decimal to binary conversion function in C++
4
7766
by: Russell | last post by:
I have an assignment that I have to complete. I have to write a windows app in C#. Here is the spec: 1/ Date Comparison Build a program that will find the number of days between two dates. You CANNOT use the inbuilt date functions or the DateTime Type. Your program should work with any date between 1900 and 3000. Here are your acceptance tests:
4
2357
by: rom | last post by:
I need to print a html table when the user clicks on a key. the problem is that i don't want the printer dialog box to appear. i guess this is impossible in javascript so i think to create an event that will be fired by a keyup event, this event will submit the page, and i will be able to print in from the vb.net without the printing dialog box. the problem is that on the server i can't print the web table because i already submitted that...
43
1889
by: shaanxxx | last post by:
if u give cordinates to programme at run time and want a line to be drawn.. how to do this in c without usin any graphics function? like x1,y1 and x2,y2 and lines should be drawn from the 1st co-ordinate to 2nd one any pointer would be appreciated Thanks
12
3529
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to print the report three times, but do not know how
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.