Need of # in header file declaration

Manuv16589

Manuv16589

@manuv16589-Mtt9lh Oct 26, 2024
Hi members,
what is need of # in header files like
#include<stdio.h>?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • rahul69

    rahul69

    @rahul69-97fAOs Nov 11, 2011

    # is a preprocessor directive. I think it helps the Linker to link the required libraries. It tells the preprocessing required to be done before compilation. It has other uses also as in
    # define x 30 where x is replaced by 30 everywhere in the program. Hope this helps 😀
  • anmolsingh6161

    anmolsingh6161

    @anmolsingh6161-iwuU20 Nov 12, 2011

    its not important to include libraries in ur program..................
  • vinci

    vinci

    @vinci-e4PtMU Nov 13, 2011

    I dont agree with Apprentice.
    Libraries are an important part of c programs and we need to include them to us e components insie them
    for example in a c++ program,without #include<conio.h>
    how can we use cin and cout?
  • PraveenKumar Purushothaman

    PraveenKumar Purushothaman

    @praveenkumar-66Ze92 Dec 22, 2011

    # is the syntax of the compiler to understand it as a directive, where #include and #define are pre-processor directives! 😀