Knowee
Questions
Features
Study Tools

Which of the following declaration is not supported by C language?Question 13Answera.String str;b.char *str;c.float str = 3e2;d.Both String str; & float str = 3e2;

Question

Which of the following declaration is not supported by C language?Question 13Answera.String str;b.char *str;c.float str = 3e2;d.Both String str; & float str = 3e2;

🧐 Not the exact question you are looking for?Go ask a question

Solution

The declaration that is not supported by C language is "String str;". In C language, there is no built-in string type. Instead, strings are represented using an array of characters. Therefore, the correct declaration would be "char *str;".

The declaration "float str = 3e2;" is also valid in C. It declares a float variable named str and initializes it with the value 3e2, which is a shorthand for 3 * 10^2, or 300.

So, the correct answer is a. "String str;".

This problem has been solved

Similar Questions

What is the problem in the following C declarations? int func(int); double func(int); int func(float);

Which of the following is not a basic data type in C language?a.floatb.intc.chard.realClear my choice

Which of the following will result in a compile-time error? float f = 1.3; char c = 'A'; byte b = 10; boolean b = true;

Which of the following is a valid declaration of a char?a.char ca = 'tea';b.char ch = '\utea';c.char cc = '\itea';d.char cr = \u0223;

Which of the following data types is not supported by C but is supported by C++?a.floatb.intc.doubled.bool

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.