[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Pointers - Discussion

Home > C Programming > Pointers > MCQs Questions Discussion

46 / 60

What will be output of following c program?

int main()
{
char *name = "name";
change (name);
printf ("%s", name);
return 0;
}
change (char *name)
{
char *nm = "newname";
name = nm;
}

Aname

Bnewname

Cname = nm

Dfunction call invalid

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!