[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 :: String - Discussion

Home > C Programming > String > MCQs Questions Discussion

16 / 26

Predict the output or error(s) for the following:

#include <stdio.h>
void main()
    {
            char string[]="Hello World";
            display (string);
    }
    void display (char *string)
    {
            printf("%s",string);
    }

ACompiler Error : Type mismatch in redeclaration of function display

BHello World

CHello

Dsegmentation fault

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Wipro

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here