Consider the following code :
#include<stdio.h>
void f1(char *x, char *y) {
char *t;
t = x;
x = y;
y = t;
}
void f2(char **x, char **y) {
char *t;
t = *x;
*x = *y;
*y = t;
}
int main()
{
char *a = "ONE", *b = "TWO";
f1(a, b);
printf("%s %s", a, b);
f2(&a, &b);
printf("%s %s", a, b);
return 0;
}
What will be the output of the above code?
Previous 10 Questions — UGC NET Computer Science August 2024 (Paper II)
Nearest first
1
2
3
4
5
6
7
8
9
10
How does a relational database ensure data integrity?
Topic: UGC NET Computer Science August 2024 (Paper II)
40 software professionals were interviewed for a job.25 knew PYTHON, 20 knew JAVA and 7 knew neither language.How many …
Topic: UGC NET Computer Science August 2024 (Paper II)
Match List – I with List – II. List – I List – II (A) Natural language processing (I) A method of t…
Topic: UGC NET Computer Science August 2024 (Paper II)
Match List – I with List – II. List – I (Counter) List – II (uses/working) (A) N-bit Ring Counter (…
Topic: UGC NET Computer Science August 2024 (Paper II)
A CPU has a 5-stage pipeline with the following stages:
Fetch (F), Decode (D), Execute (E), Memory (M) and Write-back (…
Topic: UGC NET Computer Science August 2024 (Paper II)
A vector processor with 16 lanes can perform an operation on 1024 elements in which each operation takes 5 clock cycles…
Topic: UGC NET Computer Science August 2024 (Paper II)
In Software configuration management, what is the primary purpose of version control?
Topic: UGC NET Computer Science August 2024 (Paper II)
(A) In IPv4 addressing, a block of address can be define as $x.y.z.t/n$ in which $x,y,z,t$ define one of the address an…
Topic: UGC NET Computer Science August 2024 (Paper II)
Which of the following statements are TRUE about Privileged Instructions?(A) It can only be executed by the Operating S…
Topic: UGC NET Computer Science August 2024 (Paper II)
Arrange the following stages of a Turing Machine (TM) operation in the correct order as they occur during computation.(…
Topic: UGC NET Computer Science August 2024 (Paper II)
Next 10 Questions — UGC NET Computer Science August 2024 (Paper II)
Ascending by ID
1
2
3
4
5
6
7
8
9
10
Read the below passage and answer the questions.Artificial Neural Networks (ANNs) are computational models inspired by …
Topic: UGC NET Computer Science August 2024 (Paper II)
Read the below passage and answer the questions.Artificial Neural Networks (ANNs) are computational models inspired by …
Topic: UGC NET Computer Science August 2024 (Paper II)
Read the below passage and answer the questions.Artificial Neural Networks (ANNs) are computational models inspired by …
Topic: UGC NET Computer Science August 2024 (Paper II)
Read the below passage and answer the questions.Artificial Neural Networks (ANNs) are computational models inspired by …
Topic: UGC NET Computer Science August 2024 (Paper II)
Read the below passage and answer the questions.Artificial Neural Networks (ANNs) are computational models inspired by …
Topic: UGC NET Computer Science August 2024 (Paper II)
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that…
Topic: UGC NET Computer Science August 2024 (Paper II)
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that…
Topic: UGC NET Computer Science August 2024 (Paper II)
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that…
Topic: UGC NET Computer Science August 2024 (Paper II)
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that…
Topic: UGC NET Computer Science August 2024 (Paper II)
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that…
Topic: UGC NET Computer Science August 2024 (Paper II)