Q.1.

Is it true that a global variable may have several declarations, but only one definition?

Q.2.

Point out the error in the following program.

#include<stdio.h>
int main()
{
    int (*p)() = fun;
    (*p)();
    return}
int fun()
{
    printf("IndiaBix.com\n");
    return}
Q.3.

What will be the output of the program?

#include<stdio.h>
int X=
int main()
{
    int X=
    printf("%d\n", X);
    return
}
Q.4.

Which of the structure is correct?

1 :
struct book
{
    char name[10];
    float price;
    int pages;
};
2 :
struct aa
{
    char name[10];
    float price;
    int pages;
}
3 :
struct aa
{
    char name[10];
    float price;
    int pages;
}
Q.5.

Is it true that a function may have several declarations, but only one definition?

Q.6.

In the following program how long will the for loop get executed?

#include<stdio.h>
int main()
{
    int i=    for(;scanf("%s", &i); printf("%d\n", i));
    return}
Q.7.

What is the output of the program given below ?

#include<stdio.h>
int main()
{
    enum status { pass, fail, atkt};
    enum status studstudstud    stud1 = pass;
    stud2 = atkt;
    stud3 = fail;
    printf("%d, %d, %d\n", studstudstud3);
    return}
Q.8.

By default a real number is treated as a

Q.9.

Which of the following statements should be used to obtain a remainder after dividing 3.by 2.1 ?

Q.10.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int X=
    {
        int X=
        printf("%d ", X);
    }
    printf("%d\n", X);
    return
}
Q.11.

What is the output of the program

#include<stdio.h>
int main()
{
    int x =y =z =i;
    i = x < y < z;
    printf("%d\n", i);
    return}
Q.12.

What will be the output of the program inbit platform (Turbo C under DOS)?

#include<stdio.h>
int main()
{
    extern int i;
    i =    printf("%d\n", sizeof(i));
    return}
Q.13.

Which of the following is not user defined data type?

1 :
struct book
{
    char name[10];
    float price;
    int pages;
};
2 :
long int l = 2.35;
3 :
enum day {Sun, Mon, Tue, Wed};
Q.14.

What are the types of linkages?

Q.15.

What is the output of the program

#include<stdio.h>
int main()
{
    extern int fun(float);
    int a;
    a = fun(3.14);
    printf("%d\n", a);
    return}
int fun(int aa)
{
	return (int)++aa;
}
Q.16.

What is the output of the program?

#include<stdio.h>
int main()
{
    extern int a;
    printf("%d\n", a);
    return}
int a=
Q.17.

Is the following statement a declaration or definition?
extern int i;

Q.18.

Which of the following special symbol allowed in a variable name?

Q.19.

What is the output of the program

#include<stdio.h>
int main()
{
    int a[= {3};
    printf("%d, %d, %d\n", a[2], a[3], a[4]);
    return
}
Q.20.

What is the output of the program in Turbo C (in DOS 16-bit OS)?

#include<stdio.h>
int main()
{
    char *s    char far *s    char huge *s    printf("%d, %d, %d\n", sizeof(s1), sizeof(s2), sizeof(s3));
    return}