July 7, 2021 in C and CPP
The output of following program would be
1.5 The output of following program would be
main()
{ printf(“d%d%d%” sizeof(3.14f), sizeof(3.14l);}
is
A) 4,8,10
B) 8,4,10
C) 18,8,4
D) None of the above
July 7, 2021 in C and CPP
1.5 The output of following program would be
main()
{ printf(“d%d%d%” sizeof(3.14f), sizeof(3.14l);}
is
A) 4,8,10
B) 8,4,10
C) 18,8,4
D) None of the above
July 7, 2021 in C and CPP
1.4 Declaration int *(*p) int(*a) is
A) A pointer to function that accept an integer argument and return an integer
B) A pointer to a, which returns an integer
C) A pointer to subroutine which returns an integer
D) None of the above
July 7, 2021 in C and CPP
1.3 *ptr ++ is equivalent to
A) ptr++
B) *ptr
C) ++ptr
D) ++*ptr
July 7, 2021 in C and CPP
1.2 In a multilist organisation
A) records that have an equivalent value for a given secondary index item are linked together to form a list
B) records are loaded in ordered sequence defined by collating sequence by content of key
C) records are directly accessed by records key field
D) none of the above
July 7, 2021 in C and CPP
1.1 The two type of file structures existing in VSAM file are
A) Key sequenced structures, entry sequenced structures
B) Key sequenced structure, exit sequenced structures
C) Entry sequenced structures, exit sequenced structures
D) None of the above
July 7, 2021 in C and CPP
c) Why we use do-while loop in C? Also give any properties which you know.
July 7, 2021 in C and CPP
b) Write a C program to modify the constant variable.
July 7, 2021 in C and CPP
a) In the following declaration statement:
char c=’A’;
Variable c stores one byte of memory space while character constants ‘A’ stores one byte
memory space. How one byte variables can stores two byte character constant? What is
automatic type promotion in c?
July 7, 2021 in C and CPP
b) Write a C program to write a line of string in a text file.
July 7, 2021 in C and CPP
a) Write a C program that displays the recommended actions depending on the color of a
traffic light using the switch statement.