What is the output of the following code? main() { char str[20]; printf("Enter a string: "); scanf("%[^a]",str); printf("%[^a]",str); }

Compilation error

This question is related to Wipro Interview

Showing Answers 1 - 2 of 2 Answers

deepak

  • Aug 3rd, 2006
 

it will read except character 'a' and print except character 'a'

  Was this answer useful?  Yes

Prabhu.T.S

  • Sep 1st, 2006
 

The output printed will be %[^a]

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions