Error: 'Hello'/Text undeclared while printing Hello world using printf()
While printing "Hello world", if this error 'Hello' undeclared occurred that means Hello is supplied to the compiler as a variable not as a text/string.
This is possible only, when starting double quote is missing inside the printf(). To fix this error, you should take care of double quotes; place the constant string/text in double quotes.
Example:
Output
What happens, if we use single quote instead of double code in starting of the text/string?
Missing terminating ' character error will be thrown.
How to fix?
To fix this error, close the text/string/Hello within the double quotes.
Correct code:
Output