| Other C Interview Questions |
|| Asked @
|Study the Following Points:
a.One Cannot Take the address of a Bit Field
b.bit fields cannot be arrayed
c.Bit-Fields are machine Dependant
d.Bit-fields cannot be declared as static
1. Which of the Following Statements are true w.r.t Bit-
A)a,b&c B)Only a & b C)Only c D)All
|What is false about the following
A compound statement is
a.A set of simple statments
b.Demarcated on either side by curly brackets
c.Can be used in place of simple statement
d.A C function is not a compound statement.
|Tell me a C program to display the following Output?
1 1 1 1 1
2 2 2 2
3 3 3
|write a program to swap bits in a character and return the value
prototype of function
char fun (char a, charb flag c)
where fun returns a char, char a is a the value char b is
the bit to be changed and flag c is the bit value
for eg: x=fun(45,7,0)
since 45 is 0010 0101
and ow x should contain the value 65 (0110 0101)
const char *a;
char *const a; and
char const *a;
|how to add our own function in c library please give details.?
printf("%d %d %d\n",x,x<<2,x>>2);
what is the output?
|why should i select you?
|Difference between data structure and data base.
|Give me basis knowledge of c , c++...
|What is the real difference between arrays and pointers?
|For more C Interview Questions Click Here |