• What it is the output? #include
    int main()
    {
    int i,j,*ptr,*ptr1;
    i=10;
    j=10;
    ptr=&i;
    ptr=&j;
    if(ptr==ptr1)
    {
    printf("True");
    }
    else
    {
    printf("False");
    }
    }

  • 1
    False
    Compile error
    No output

  • Comment on the following
    const int *ptr;

  • You cannot change the value pointed by ptr
    You can change the value of the pointer
    You can change the pointer as well as the value pointed by it
    None of these

  • What is the output of the following program ?
    #include
    void main()
    {
    int a;
    a='a'>'A';
    printf("%d", a);
    getch()
    }
    Null
    Error
    0
    1

  • For passing command line argument the main function should be like

  • int main(int argc, char *argv[]
    int main(int argc)
    int main(char *argv[])
    int main(char *argv[], int argc)

  • Where the local variables are stored ?

  • Disk
    Stack
    Heap
    OS

  • What it is the fomat of conditional operator ?

  • Condition? true value:false value
    Condition! true value:false value
    Condition? false value:true value
    Condition? true value::false value

  • What is the purpose of ftell?

  • To get the current file name
    To get the current file status
    To get the current file attributes
    To get the current file position

  • What will be the output of the below code?
    #include
    int main()
    {
    float f=0.1;
    if(f==0.1)
    {
    printf("NO");
    }
    return 0;
    }

  • No output
    NO
    Successfully compiled but no output
    Error

  • Which of the below function is not declared in string.h?

  • strptr()
    strcpy()
    strlen()
    strupr()

    Hope this code will helpful for you