pholosoSethebe6691 pholosoSethebe6691
  • 21-08-2019
  • Computers and Technology
contestada

Which of the following is NOT a valid declaration for a character string?

a) char string1[3] = {“1”, “2”, ‘3’, 4}

b) char string1[12];

c) char string1[] = “this is a string”;

d) char string1[25] = “this is a string”;

Respuesta :

ExieFansler ExieFansler
  • 30-08-2019

Answer:

a) char string1[3] = {“1”, “2”, ‘3’, 4}

Explanation:

In the declaration we have a string of size 3 from which 1 block is reserved for null character and we are declaring a string of size 4 and out them two are of type string and 1 is a character and 1 is an integer.

All the other three declarations are correct they will run on the IDE.

So we can say that the answer to this question is option a.

Answer Link

Otras preguntas

I need the answer to this question
Which equation of a line is parallel to y=4/5x-1? a. y=4/5x+2 b. y= -5/4x-1 c. y= -4/5x+3 d. y=5/4x-6
please help me with this​
100 points if you can help me answer these 5 questions!! :)
A rectangular pool has a length of 10 feet, a width of 8 feet, and a height of 6 feet. What is the volume of the pool?
THIS IS WORTH 50 POINTS WILL MARK BRAINLYEST PLEASE HELP Use either elimination or substitution. y = x - 4 x + y = 6
Music does bring people together. People everywhere are the same in heart and spirit. No matter what language we speak, what color we are, the form of our polit
What is the domain of f(x) = √x – 4 over the set of real numbers?​
Thr frightened dear dissappeared ...the forest (up/towards/into/onto) correct prepositions what is answer
908636549723 times 47647647 divided bye 98