[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

41 / 60

What will be the result of the following program?

#include <stdio.h>
void print(char *p);
int main()
{
char s[] = "T.C.S", *A;
print(s);
return 0;
}
void print(char *p)
{
while (*p != '\0')
{
if (*p != '.')
printf ("%c", *p);
p++;
}
}

ATCS

BT.C.S

CSegmentation fault

DNone of the above

Answer: Option (Login/Signup)

Show Explanation

Asked In :: TCS

Post Your Answer Here:     

No Discussion on this question yet!