Index : C Programming : Question Bank (Check Your Skill)
C Programming : Challenging Questions
[ Checking your C knowledge ]
[ Checking your C knowledge ]
This Section Covers all Verities of Basic Syntax , Trick ,Tactics and Different Challenging Questions . If You have any Simple Solution or Explanation or any New Problem then feel free to contact : pripat2001@gmail.com
“The greatest challenge to any thinker is stating the problem in a way that will allow a solution”
1. Scope of Variable
2. C Programming General
3 . Switch Case
- Example 1 : Order of cases
- Example 2 : Every Statement should be wrapped within any of case
- Example 3 : Every case label should be unique
- Example 4 : Constant Expression is allowed
- Example 5 : Variables in switch case label not allowed
- Example 6 : Semicolon after switch
- Example 7 : No Case in switch
- Example 8 : Misplaced Continue in switch
- Example 9 : Multiple numbers in case Label (use of Comma)
- Example 10: Shift Operators in Switch Case
- Example 11: #define macro-identifier in Switch
- Example 12: Const variable allowed in switch label
- Example 13: Multiple parameters to switch case
- Example 14: Multiple Cases and One Break
- Example 15: Characters are allowed
- Example 16: Expressions are allowed in switch
- Example 17: Negative Cases are allowed
- Example 18: Cases may be int/char
- Example 19: Comparison Not allowed
- Example 20: Floating Cases not allowed
4 . Input/Output :
- Example 1 : Nested printf [Integer]
- Example 2 : Nested printf [String]
- Example 3 : Accept Paragraph using Scanf
- Example 4 : Accept Line with Spaces using Scanf
- Example 5 : Print Hello Word Without using Semicolon
