This Question is Answered 

    anon

    What Is The C Preprocessor ? Explain With The Help Of An Example. Explain In Brief Different Types Of Memory Allocation Functions Explain In Brief The Procedure Oriented Progrmming , Modular Programming And Object Oriented Programming. What Is Recursion Explain With The Help Of An Example

    Related to Programming concept and object oriented programming

    asked 1 year ago

    Can't find what you're looking for?

    Ask a Question, Get an Answer ASAP


    Answers


    C Preprocessor is historically a seperate computer program which simply searches some things and replaces them with others.

    Example:

    #define PI 3.14

    float f = PI; /* PI will be replaced with 3.14 by C Preprocessor*/

    /* The contents of the other file will be pasted by C Preprocessor*/
    #include "myotherfile.c"

    With respect to C, there are two memory allocation functions:

    Void * malloc(size_t number of bytes);
    void * calloc(size_t sizeofEachItem, int numberOfItems);

    first one requires you to precisely tell number bytes required
    The other one asks you to tell the size of each item and number of items required

    answered 1 year ago   

    New Comment

    1000 words left


      What is Blurtit ?

      Ask questions on any topic, get great answers from real people for FREE. Blurtit has hundreds of thousand of members so your sure to get the answer your looking for.

      Ask a Question.