C

6 comments:

  1. what is ambiguity error

    ReplyDelete
    Replies
    1. An error caused due to confusion is called 'Ambiguity' error.

      Delete
  2. i cant understand 3rd question

    ReplyDelete
    Replies
    1. In Turbo C compiler, there is an inbuilt function called randomize(). The question is "What is the purpose of that function?"

      Delete
  3. 5.

    What is the output of the program

    #include
    int main()
    {
    struct emp
    {
    char name[20];
    int age;
    float sal;
    };
    struct emp e = {"Tiger"};
    printf("%d, %f\n", e.age, e.sal);
    return 0;
    }

    [A].
    0, 0.000000 @
    [B]. Garbage values
    [C]. Error [D]. None of above

    Answer: Option A

    Explanation:

    When an automatic structure is partially initialized remaining elements are initialized to 0(zero).

    i cant understand how this program works

    ReplyDelete
  4. in 5th qustion, they din initialize tat variable..is it possible to get output for tat variable...and tat variable is declared with negative sign.. is tat declaration s right
    ?

    ReplyDelete