www.brightbrains.in

About Us/Home         Tests On Offer           Sample Questions           FAQ           Why BrightBrains?        Contact Us

C
Level:-Basic
Q(1) I Can use �int� data type to store the value 32768.
A   Yes
B   No
Q(2) ________ is a modifer.
A   Storage class
B   Size
C   Interrupt
D   All of the above
Level:-Intermediate
Q(1) Which of these is not a proper prototype?
A   int funct(char x, char y);
B   double funct(char x)
C   void funct();
D   char x();
Q(2) What does fp point to in the program ?
#include

int main()
{
    FILE *fp;
    fp=fopen("trial", "r");
    return 0;
}
A   The first character in the file
B   A structure which contains a char pointer which points to the first character of a file.
C   The name of the file.
D   The last character in the file.
Level:-Expert
Q(1)
#include 
    main()
    {
        char *p = 0;
        *p = 'a';
        printf("value in pointer p is %c\n", *p);
    }
A   It will print a
B   It will print 0
C   Compile time error
D   Run time error
Q(2) How will you free the memory allocated by the following program?
#include
#include
#define MAXROW 3
#define MAXCOL 4

int main()
{
    int **p, i, j;
    p = (int **) malloc(MAXROW * sizeof(int*));
    return 0;
}

A   memfree(int p);
B   dealloc(p);
C   malloc(p, 0);
D   free(p);
BACK      REGISTER NOW
Positive SSL
Terms & Conditions   Cookies Policy   Privacy Policy  
   © Copyright 2023 BrightBrains