Computer Science, asked by ismail309, 1 year ago

Which of the following declarations are illegal?
A) Void ptr;
B) char str="hello";
C) Char str = "hello";
D) const int p1;

Answers

Answered by iiPastel
1

i think it's A.

idk if i'm right


ismail309: No, I think its D
iiPastel: oof
ismail309: You may correct, because pointer variable should be declared like void *ptr;
iiPastel: oooohh ok
anurag9881: hello
anurag9881: good morning
Answered by sneha8665
1

Option A.

Plz mark me as the brainliest.

Similar questions