char S;
char S[6]= " HELLO";
printf("%s ",S[6]);

output of the above program ?
(0, ASCII 0, I,unpredictable)

Answer Posted / divakar & venkatesh

u will get the following error
conflicting types for 'S'

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how many levels deep can include files be nested?

630


What is the difference between #include

and #include “header file”?

557


What is the concatenation operator?

615


What is the most efficient way to store flag values?

691


What does sizeof int return?

596






What is the return type of sizeof?

598


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4183


What type of function is main ()?

594


Explain #pragma statements.

608


What are derived data types in c?

618


How can I open files mentioned on the command line, and parse option flags?

597


How can you convert integers to binary or hexadecimal?

622


what are bit fields in c?

609


What is equivalent to ++i+++j?

648


What are the application of void data type in c?

724