Skip to content

Category Archives: Program Output

QUE.1 What is the output of following program?  C #include <stdio.h> int main() {     int x = 10, *y, **z;        y = &x;     z… Read More
Prerequisite : Pointers in C/ C++ QUE.1 What would be printed from the following C++ program?  C++ #include <iostream> using namespace std; int main() {     int… Read More
QUE.1 What will be output if you will compile and execute the following c code? #include <stdio.h> int main() {     int a = 5;     float… Read More
Predict the output for the following C++ code: Question 1 #include <iostream> int main() {     if (std::cout << "hello")         std::cout << " world";     else         std::cout… Read More
Prerequisite : File handling 1. What is the output of this program by manipulating the text file? #include <stdio.h> int main() {     if (remove("myfile.txt") !=… Read More
Ques 1. What is the output of the following assuming that the size of int is 4 bytes. #include <iostream> using namespace std;    class… Read More
Prerequisite : Pre-increment and Post increment Question 1   C #include <stdio.h>   int main() {     char* p = "mayhem";     char c;     int i;     for (i =… Read More
Ques1. What is the output of the following? import java.util.*;    public class Test { public static void main(String[] args)     {         int[] x = new… Read More
Ques1. What is the output of the following ? #include <stdio.h> void main() {     int a[5] = { 5, 1, 15, 20, 25 };     int… Read More
1.) What will be the output of the following code? #include <stdio.h> int main(void) {     int y, z;     int x = scanf("%d %d", &y, &z);… Read More
1. What will be the output of following? void main() {     int const* p = 5;     printf("%d", ++(*p)); } Options: A. 6 B. 5 C.… Read More
Ques1: What is the output of this program? class A {     public int i;     private int j; }    class B extends A {     void… Read More
1) What is the output of the following program?   PYTHON3 str1 = '{2}, {1} and {0}'.format('a', 'b', 'c') str2 = '{0}{1}{0}'.format('abra', 'cad') print(str1, str2) a)… Read More
1) What is the output of the following program?  PYTHON L = list('123456') L[0] = L[5] = 0 L[3] = L[-2] print(L) a) [0, ‘2’,… Read More
Prerequisite – Tuples and Dictionaryin Python Predict the output of the following Python programs.  1.What is the output of the following program?  Python numberGames = {}… Read More

Start Your Coding Journey Now!