Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged programming-in-c
0
0 votes
1
1 answer
247
247 views
UGC NET CSE | August 2024 | Part 2 | Question: 20
Which of the following is correct way to declare a functional pointer in C?int *func (int, int);int (*func) (int, int);int (func*) (int, int);int *func* (int, int);
Shubham Sharma 2
247
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
pointers
+
–
0
0 votes
1
1 answer
281
281 views
UGC NET CSE | August 2024 | Part 2 | Question: 21
What will be the output of the following $\text{C}$ code?#include<stdio.h void main() { int arr[5]={10,20,30,40,50}; int *p = (int*) (&arr+1); printf("\%d\%d", *(arr + 1)...
Shubham Sharma 2
281
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
array
pointers
output
+
–
0
0 votes
0
0 answers
206
206 views
UGC NET CSE | August 2024 | Part 2 | Question: 22
What is the output of code given below:#include<iostream.h using namespace std; class Base { public: Base(){ cout<<"Base Const"; } virtual ~Base() { cout<<"Base dest"; } ...
Shubham Sharma 2
206
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
object-oriented-programming
output
+
–
0
0 votes
2
2 answers
396
396 views
UGC NET CSE | August 2024 | Part 2 | Question: 23
Which of the following C++ statements correctly declares an abstract class?class A { virtual void show ()=0; };class A { void show ()=0; };class A { void show() {} ; };cl...
Shubham Sharma 2
396
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-aug2024
object-oriented-programming
programming-in-c
+
–
0
0 votes
1
1 answer
277
277 views
UGC NET CSE | August 2024 | Part 2 | Question: 44
Arrange the following steps of file handling in C in the correct order:Close the fileRead from or write to the fileOpen the fileCheck for errorChoose the correct answer f...
Shubham Sharma 2
277
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
+
–
0
0 votes
1
1 answer
303
303 views
UGC NET CSE | August 2024 | Part 2 | Question: 71
Which of the following statements about pointers in $C$ are TRUE.Pointers can be used to access array elementsPointers can store the address of another pointerPointers ar...
Shubham Sharma 2
303
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-aug2024
programming-in-c
pointers
data-structures
+
–
3
3 votes
2
2 answers
350
350 views
UGC NET CSE | December 2023 | Part 2 | Question: 4
What is the result of evaluating the postfix expression "$43^{*} 25^{*}+b-$ " ?$8$$14$$10$$5$
Shubham Sharma 2
350
views
asked
Sep 9, 2025
Data Structures
ugcnetcse-dec2023
expression-evaluation
stack
programming-in-c
+
–
0
0 votes
0
0 answers
283
283 views
UGC NET CSE | December 2023 | Part 2 | Question: 8
A program that is used by other routines to accomplish a particular task, is called :Micro programMicro operationRoutineSubroutine
Shubham Sharma 2
283
views
asked
Sep 9, 2025
Compiler Design
ugcnetcse-dec2023
programming-in-c
+
–
0
0 votes
0
0 answers
189
189 views
UGC NET CSE | December 2023 | Part 2 | Question: 11
What is the output of the following program?#include <stdio.h int main() { int i = 3; while (i ) { int i = 10; i ; printf("%d", i); } printf("%d", i); }$990$$9990$$999-1$...
Shubham Sharma 2
189
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-dec2023
programming-in-c
output
data-structures
+
–
0
0 votes
1
1 answer
183
183 views
UGC NET CSE | December 2023 | Part 2 | Question: 16
What is the output of the following program?#include <stdio.h #define SQR(x) (x*x) int main() {int a, b = 3; a = SQR(b + 2); printf("%d", a); return 0; }$25$$11$Garbage v...
Shubham Sharma 2
183
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-dec2023
programming-in-c
output
+
–
0
0 votes
1
1 answer
360
360 views
UGC NET CSE | December 2023 | Part 2 | Question: 78
Consider the following code segment:int arr [] = {0,1,2,3,4}; int i=1, *ptr; ptr = arr + 2;arrange the following printf statements in the increasing order of their output...
Shubham Sharma 2
360
views
asked
Sep 9, 2025
Programming in C
ugcnetcse-dec2023
programming-in-c
pointers
array
+
–
0
0 votes
2
2 answers
464
464 views
UGC NET CSE | December 2023 | Part 2 | Question: 87
Given below are two statements :Statement $\text{(I)}$ : The friend function and the member functions of a friend class directly access the private and protected data.Sta...
Shubham Sharma 2
464
views
asked
Sep 9, 2025
Object Oriented Programming
ugcnetcse-dec2023
object-oriented-programming
programming-in-c
+
–
1
1 vote
1
answers
1 answer
371
371 views
Pointers and Opearator Precedence one shot
Consider the following declarations in C:int P[5] = {1,2,3,4,5}; // Assume the address of P[0] is 100 // Since int = 4 bytes, addresses are: // 100 104 108 112 116 // 1 2...
amanbadone0
371
views
asked
Aug 25, 2025
Programming in C
programming-in-c
pointers
+
–
1
1 vote
0
0 answers
386
386 views
NPTEL Mock Test-2 2025-2026 | Q 38
A. z K SB. 122 75 83C. * - +D. P x +
Umesh Shelke
386
views
asked
Aug 24, 2025
Programming in C
programming-in-c
two-marks
nptel-quiz
+
–
0
0 votes
3
3 answers
655
655 views
GATE CSE || FUNCTIONS
#include <stdio.h>int counter = 0;int g(int n) { counter++; return (n + 10);}int f(int n) { return g(n * 2);}int main() { int sum = 0, n; for (n = 1; n < 3...
Gopi_Tirumala
655
views
asked
Jul 30, 2025
Programming in C
programming-in-c
functions
+
–
2
2 votes
1
1 answer
233
233 views
NIELIT Scientific Assistant June 2025 | Question: 62
Which of the following is the primary operation for adding an element to a queue in $\text{C}?$EnqueueDequeuePushPop
Shubham Sharma 2
233
views
asked
Jul 24, 2025
Data Structures
nielit-sta-2025
queue
data-structures
programming-in-c
+
–
1
1 vote
1
1 answer
148
148 views
NIELIT Scientific Assistant June 2025 | Question: 68
Which of the following describes binding in $\text{C}?$The process of assigning a value to a variableThe process of declaring the type of a variableThe process of associa...
Shubham Sharma 2
148
views
asked
Jul 24, 2025
Compiler Design
nielit-sta-2025
programming-in-c
+
–
0
0 votes
0
0 answers
144
144 views
NIELIT Scientific Assistant June 2025 | Question: 83
Which of the following is an example of passing a parameter by reference in $\text{C}?$ void func(int $\text{x}$)void func(int & $\text{x}$)void func(int $\text{x},$ int ...
Shubham Sharma 2
144
views
asked
Jul 24, 2025
Programming and DS
nielit-sta-2025
programming-in-c
parameter-passing
pointers
+
–
0
0 votes
1
answers
1 answer
502
502 views
Pointers
In C language, if p1 and p2 both have data type int* and p1>p2 (both point to same array) then what is the data type of p1-p2?
Vartika Rawat
502
views
asked
Jul 17, 2025
Programming in C
programming-in-c
pointers
programming
+
–
Page:
« prev
1
...
4
5
6
7
8
9
10
11
12
13
14
...
86
next »