COGNIZANT INTERVIEW QUESTIONS - 2018
1) What are different types of modifiers in C? There are 5 modifiers available in C language. They are: short, long, signed, unsigned, and long long 2) What is a static variable? A static local variable retains its value between the function call and the default value is 0. 3) a++ or a = a+1, which can be recommended to increment the value by 1 and why? a++, as it is single machine instruction internally. 4) What is a dangling pointer? A pointer initially holding a valid address, but later the held address is released or freed. Then such a pointer is called as a dangling pointer. 5) What are lvalue and rvalue? The expression appearing on the right side of the assignment operator is called as rvalue. Rvalue is assigned to an lvalue, which appears on the left side of the assignment operator. The lvalue should designate to a variable not a constant. 6) Explain the use of %i format specifier w.r.t scanf(). Can be used to input integer in all the suppor...
pelease send me 5th unit
ReplyDeletetq sir
ReplyDelete