Skip to content
SDE SHEET - A Complete Guide for SDE Preparation
What is SDE Sheet?SDE Sheet is a list of the most important topics or the most popular questions that are asked in the Software Development Engineer Interviews.How is this...Read More
In C/C++, getc() returns EOF when end of file is reached. getc() also returns EOF when it fails. So, only comparing the value returned by… Read More
Function overloading is possible in C++ and Java but only if the functions must differ from each other by the types and the number of… Read More
Given an array of n elements that contains elements from 0 to n-1, with any of these numbers appearing any number of times. Find these… Read More
The order of operands of logical operators &&, || are important in C/C++. In mathematics, logical AND, OR, etc… operations are commutative. The result will… Read More
In C, the structures are used as data packs. They don’t provide any data encapsulation or data hiding features. In this article, we will discuss… Read More
A nested class is a class which is declared in another enclosing class. A nested class is a member and as such has the same… Read More
C++
In Java, all methods in an interface are public even if we do not specify public with method names. Also, data fields are public static… Read More
The ASCII NULL and zero are represented as 0x00 and 0x30 respectively. An ASCII NULL character serves as sentinel characters of strings in C/C++. When… Read More
C++
Declare “a function with argument of int* which returns pointer to an array of 4 integer pointers”. At the first glance it may look complex, we… Read More
While working with binary files, how do you measure their endianness? For example, if a programmer is making configuration file in binary format (e.g. on… Read More
A function is said to be reentrant if there is a provision to interrupt the function in the course of execution, service the interrupt service… Read More
In computer science, a critical section refers to a segment of code that is executed by multiple concurrent threads or processes, and which accesses shared… Read More
As private, protected and public (access modifiers) affect the accessibility and scope of the field. So, the method cannot be private which are called from… Read More
In C, the only operation that can be applied to struct variables is assignment. Any other operation (e.g. equality check) is not allowed on struct… Read More
Constructors in Java are used to initialize the values of the attributes of the object serving the goal to bring Java closer to the real… Read More