September 5, 2023

Programming

Question 13 Consider the following C functions. int fun1 (int n) { int fun2 (int n) { static int i = 0; static int i = […]
September 5, 2023

Programming

Question 1 Let x be an integer which can take a value of 0 or 1. The statement if(x = =0) x = 1; else x […]
September 30, 2023

Programming

Question 1 Consider the following C program: #include <stdio.h> int counter = 0; int calc (int a, int b) { int c; counter++; if (b==3) return […]
October 4, 2023

Programming

Question 7 A variant record in Pascal is defined by type varirec = record number : integer; case (var1,var2) of var1: (x,y : integer); var2: (p.q.: […]
October 4, 2023

Programming

Question 425 Suppose you are compiling on a machine with 1-byte chars, 2-byte shorts, 4-byte ints, and 8-byte doubles, and with alignment rules that require the […]
October 9, 2023

Nielit Scientist-B IT 4-12-2016

Question 11 What is the meaning of following declaration? int(*P[7])(); A P is pointer to function B P is pointer to such function which return type […]
October 9, 2023

Nielit Scientist-B IT 4-12-2016

Question 11 What is the meaning of following declaration? int(*P[7])(); A P is pointer to function B P is pointer to such function which return type […]
October 10, 2023

UGC NET CS 2009 Dec-Paper-2

Question 12 What would be the output of the following program, if run from the command line as “myprog 123”? main(int argc,char∗argv[ ]) { int i; […]
October 10, 2023

Programming

Question 3 Consider the following C program which is supposed to compute the transpose of a given 4 x 4 matrix M. Note that, there is […]
October 10, 2023

Programming

Question 4 What is the output of the following program? #include <stdio.h> int funcf (int x); int funcg (int y); main() { int x = 5, […]