Skip to content

Category Archives: Program Output

IIR stands for Infinite Impulse Response, It is one of the striking characteristics of many linear-time invariant systems that are characterized from having an impulse… Read More
Using inbuilt function Using the inbuilt function strcpy() from string.h header file to copy one string to the other. strcpy() accepts a pointer to the… Read More
Runtime Errors: A runtime error in a program is an error that occurs while the program is running after being successfully compiled. Runtime errors are… Read More
ValueError is encountered when we pass an inappropriate argument type. Here, we are talking about the ValueError caused by passing an incorrect argument to the… Read More
Given a number N, the task is to print Fibonacci Series till Nth number without using any loop. Examples: Input: N = 5 Output: 0… Read More
When we talk of randomness in general, it’s not something that shouldn’t possess repeitition, it is something that outputs data that is unpredictable. Random numbers… Read More
An Arrow operator in C/C++ allows to access elements in Structures and Unions. It is used with a pointer variable pointing to a structure or… Read More
Prerequisite: Switch Case in C/C++ Problem Statement: Write a menu-driven program using the Switch case to convert the CGS system to MKS system and vice… Read More
Prerequisite: Dictionary Note: Output of all these programs is tested on Python3 1.What is the output of the following of code? a = {i: i… Read More
Predict the output of the following C++ programs: Question 1: #include <cstdlib> #include <iostream> using namespace std; int main() {     int ran = rand();     cout… Read More
Delete is an operator that is used to destroy array and non-array(pointer) objects which are created by new expression.  Delete can be used by either… Read More
What is the output of the following program? #include <iostream> using std::cout; int main() {     int i = 0;     cout << (i = 0 ?… Read More
Consider the following C program. #include <stdio.h> int main(void) {     int a = 'd';        printf("%d\n", a);     /*OUTPUT - 100 (ASCII Code for character d)*/… Read More
Prerequisite : Decision making in C Question 1 #include"stdio.h" #include"stdlib.h" void reverse(int i) {     if (i > 5)          exit(0);      printf("%d\n", i);      return reverse(i++); } int… Read More
Prerequisite : Pointers in C Question 1 : What will be the output of following program? #include "stdio.h" int main() {     char a[] = {… Read More