473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

# preprocessors

What does this statement actually mean

#include<stdio.h>
what is this # stands for
Nov 18 '08 #1
5 1362
r035198x
13,262 8TB
What does your textbook say?
Nov 18 '08 #2
What does your textbook say?


Its just a directive to the header file placed in angle brackets.. what does it include
Nov 18 '08 #3
r035198x
13,262 8TB
# itself doesn't include anything. The "include" after it is the one that asks for a named header file to be made available.

P.S That textbook of yours contains all this and more.
Nov 18 '08 #4
#include is also a processor directive.
stdio.h is a header file that contain functions like printf(), scanf() etc.These functions are defined in stdio.h file.So if we don't write #include<stdio.h> , printf() and scanf() functions doesn't work.
Nov 19 '08 #5
donbock
2,426 Expert 2GB
#include is also a processor directive.
stdio.h is a header file that contain functions like printf(), scanf() etc.These functions are defined in stdio.h file.So if we don't write #include<stdio.h> , printf() and scanf() functions doesn't work.
I understand what you mean, but pedantically speaking it is a little different.

1. "#include" is [only] a preprocessor directive. The word "also" was misleading.

2. stdio.h is a header file, but it does NOT contain functions like printf(), scanf() etc. Instead, the header file contains macro definitions, typedefs, external variable declarations, and function prototype declarations that are needed in order for a user file to call functions like printf(), scanf(), etc. It contains function declarations, not function definitions.
Nov 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution...
0
by: Alexander DEJANOVSKI | last post by:
Retic goes Jython now, and is thus fully compatible with the Java platform. (I won't develop no more on the former Python version of Retic. ) This gives a better connectivity, particularly through...
0
by: Alexander DEJANOVSKI | last post by:
JyRetic 1.0RC3 was just released. (http://retic.sourceforge.net) Changes are (I might have forgotten some bug fixes): - Bug fix : Scheduled events didn't work if no parameter file was required...
10
by: Mary Ellen Curtin | last post by:
arrgh. Because I can't afford a new system right now, I'm running a hamster-powered Pentium 166, 64 M RAM, Win 95. I've been using Dreamweaver3, but I've now reached my limit. *rends DW3 with teeth...
4
by: Jamiil | last post by:
I have a class which only purpose is to provide services to a variety of classes in other files. The 'manipulator' class is aware of the other classes only because the header files have been...
9
by: Let_Me_Be | last post by:
Hi all, I'm developing a small defensive programming toolkit for my own projects. So, here are my questions. 1) Is it possible to move from something like this: SAFECALL(foo();) to __safecall...
32
by: spibou | last post by:
Is the output of the C preprocessor deterministic ? What I mean by that is , given 2 compilers which conform to the same standard, will their preprocessors produce identical output given as input...
7
by: leonm54 | last post by:
I have nightmares about code similar to the following: #define NUM_TRIES 10 // Number of tries before we eject them .... if ( iCurrentTicks NUM_TRIES) { .... }
11
by: pauldepstein | last post by:
I am using the xlw package as a c++ wrapper for excel functions. In our c++ library, there is an excel function which our c++ developers refer to as DevelopersFunction, and which the excel users...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...
0
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,...

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.