Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET
Aspire Study - Best NIMCET Coaching

🎯 Crack NIMCET with Aspire Study

🔹 India's Most Trusted MCA Coaching
💻 Live + Recorded Classes | 👨‍🏫 Expert Faculty
📝 All India Test Series | 🎯 Personal Mentorship

🥈 NIMCET AIR 2: Ayush Garg

🚀 Join Aspire Now

📂 Aspire Study Library


Question Id : 17578 | Context : UGC NET Computer Science August 2024 (Paper II)

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?


Aspire Study Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

📲
Ask Your Question or Put Your Review.

loading...