Johnson Controls Written Exam


Q.1  320X240 pixel lcd screen question (very big and carries max weightage)

Q.2 Correct way to print the next element of arr.
struct test1{
-----------
-----------
}arr[10];

A)arr + sizeof(struct test1 arr);
B)arr + sizeof(struct test1);

Q.3 If MAX is used 1000 times in a program then which will use less code memory:

A)#define MAX 5
B)const int MAX=5;
C)both will use same amount of code memory
D)NOne of the above


Q.4 Which of the following is not valid in ANSI C
A)#debug
B)#error
C)#pragma
D)##

Q.5 A question based on use of MACRO
Q.6

Q.8 Write code for these:
a.Array of int Pointer
b.Pointer to an int Array
c.Function pointer to a function taking one integer arguement.

No comments:

Post a Comment