Consider the following C programs.
// PROGRAM 1
#include<stdio.h>
  
int main(void)
{
    int a = 1, 2, 3;
 &#x...
Share
What is Object Oriented Programming?
Object Oriented Programming (OOP) is a programming paradigm where the complete software operates as a bunch of objects talking to...
Share
What are the differences between C and C++?
1) C++ is a kind of superset of C, most of C programs except few exceptions (See this and this) work in C++ as well.
2) C...
Share
What is a Constructor?
Constructors are used to initialize the object’s state. Like methods, a constructor also contains collection of statements(i.e. instruc...
Share
Prerequisites – Stop & Wait, Go Back N, Selective Repeat
Summary of all the protocols –
Before starting with the questions a quick recap for all t...
Share
Advantages
Large virtual memory.
More efficient use of memory.
Unconstrained multiprogramming. There is no limit on degree of multiprogramming.
Disadvantages
Numbe...
Share
What is the time complexity of following function fun()? Assume that log(x) returns log value in base 2.
void fun()
{
   int i, j;
 &...
Share
Consider below two C language functions to compute sum of elements in a 2D array. Ignoring the compiler optimizations, which of the two is better implementation of su...
Share
Question 1: Given a directed weighted graph. You are also given the shortest path from a source vertex ‘s’ to a destination vertex ‘t’. &#...
Share
What is an algorithm?
Informally, an algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, ...
Share