C Programming | Strings | CS GATE PYQs | GATE 2018 Solutions | Solutions Adda | Q49 | GATE 2022
Автор: Solutions Adda - One Stop Solution for GATE & PSUs
Загружено: 2021-07-16
Просмотров: 448
Описание:
GATE 2018 Q: Consider the following C program:
#include stdio.h
void fun1(char *s1, char *s2) {
char *tmp;
tmp = s1;
s1 = s2;
s2 = tmp;
}
void fun2(char **s2, char **s2) {
char *tmp;
tmp = *s1;
*s1 = *s2;
*s2 = tmp;
}
int main () {
char *str1 = "Hi", *str2 = "Bye";
fun1(str1, str2); printf("%s %s", str1, str2);
fun2(&str1, &str2); printf("%s %s", str1, str2);
return 0;
}
The output of the program above is
GATE Previous Year Questions with detailed explanation question by question
Website: https://solutionsadda.in/
GATE PYQs : https://solutionsadda.in/gate1/
ISRO / DRDO PYQs: https://solutionsadda.in/isro/
NIC - NIELIT PYQs: https://solutionsadda.in/nielit/
GATE Complete Analysis: https://solutionsadda.in/gate-complet...
ISRO Complete Analysis: https://solutionsadda.in/isro-complet...
NIC-NIELIT Complete Analysis: https://solutionsadda.in/nielit/
For GATE, BARC, ISRO, CIL, AAI, HAL, UGC NET JRF, NIC NIELIT, STQC NIELIT, NVS, KVS, DSSSB PGT/TGT
Test series : https://solutionsadda.in/test-series/
If you have any queries write a mail: [email protected]
Face Book Page: / solutionsaddain-111628724482494
Telegram: https://t.me/solutionsaddaforcse
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: