1. Question:Define Operator, Operand, and Expression in 'C'? 

    Answer
    Operators are symbols which take one or more operands or expressions and perform arithmetic or logical computations.
    Operands are variables or expressions which are used in operators to evaluate the expression.
    Combination of operands and operators form an expression.

    1. Report
  2. Question:What is use of void data type? 

    Answer
    Void is an empty data type normally used as a return type in C/C++, C#, Java functions/methods to declare that no value will be return by the function.
    The another used of void is to declare the pointer in C/C++ where It is not sure what data type is addressed by the pointer.

    1. Report
  3. Question:four type of scope in c: 

    Answer
    Block scope.
    Function scope.
    File scope.
    Program scope.

    1. Report
  4. Question:what is nested structure? 

    Answer
    A structure is a collection of one or more variables, possibly of different data types, grouped together under a single name for convenient handling. Structures can contain other structures as members; in other words, structures can nest.

    1. Report
  5. Question:What is prototype of printf function? 

    Answer
    Prototype of printf function is:
     int printf( const char *format ,…)

    1. Report
  6. Question:What is difference between declaration and definition? 

    Answer
    During declaration we just specify the type and no memory is allocated to the variable. But during the
     definition an initial value is assigned and memory is allocated to the variable.

    1. Report
  7. Question:What is function recursion? 

    Answer
    When a function of body calls the same function then it is called as 'recursive function.'
    Example:
    Recursion()
    {
        printf("Recursion !");
        Recursion();
    }

    1. Report
  8. Question:What is use of #pragma inline directive in c language? 

    Answer
    #pragma inline only tells the compiler that source code of program contain inline assembly language code .In c we can write assembly language program with help of asm keyword.

    1. Report
  9. Question:What is the meaning of multilevel pointers in c? 

    Answer
    A pointer is pointer to another pointer which can be pointer to others pointers and so on is known as multilevel pointers. We can have any level of pointers.

    1. Report
  10. Question:Difference between pass by reference and pass by value? 

    Answer
    Pass by reference passes a pointer to the value. This allows the callee to modify the variable directly.Pass by value gives a copy of the value to the callee. This allows the callee to modify the value without modifying the variable. (In other words, the callee simply cannot modify the variable, since it lacks a reference to it.)

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd