-
Fflush() argument in ANSI C
Identify the correct argument for the function call fflush() in ANSI C:A)stdoutB)stdinC)stderrD)All the above
-
-
-
C/C++ Error Codes
what are the different types of errors observed in C and classify them as compile time or run-time errors.
-
What is the output ?
Main(){printf("""ramabrahmam"");}
-
Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived
Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called?
-
Based on type conversion
Main(){ printf("%d",(2.5*2.5));}above gives output of 0 plss explain
-
String Storing
How we can store more than 128chars in char-variable.
-
-
-
C Structures
Is structure a value type or a reference type? why?
-
How reliable are floating-point comparisons?
Floating-point numbers are the “black art” of computer programming. One reason why this is so is that there is no optimal way to represent an arbitrary number. The Institute of Electrical and Electronic Engineers (IEEE) has developed a standard for the representation of floating-point numbers, but you cannot guarantee that every machine you use will conform to the standard. Even if your machine does...
-
-
-
-
}
">Vi) main(){ extern int i; i=20;printf("%d",i);}
Linker Error : Undefined symbol '_i'Explanation: extern storage class in the following declaration, extern int i;specifies to the compiler that the memory for i is allocated in some other program and that address will be given to the current program at the time of linking. But linker finds that no other variable of name i is available in any other program with...
-
-
-
What is an lvalue?
An lvalue is an expression to which a value can be assigned. The lvalue expression is located on the left side of an assignment statement, whereas an rvalue is located on the right side of an assignment statement. Each assignment statement must have an lvalue and an rvalue. The lvalue expression must reference a storable variable in memory. It cannot be a constant.
-
Finding Two least number in array.
How to find the least two numbers in a single dimension array in a single pass (traversing the elements only once)
C Interview Questions
Ans