Math, asked by manuannu222, 3 months ago

25. Which of the following is not a pointer declaration
(A) char a[10]
(B) char a[] = {'1', '2', '3', '4'}
(C) char *str
(D) char a​

Answers

Answered by arslanamjad876
1

Answer:

d

Step-by-step explanation:

Array declarations are pointer declarations.

Answered by Sreejanandakumarsl
0

Answer:

The correct answer is : (d) char a

From the following options, the one which is not a pointer declaration is (d) char a.

Step-by-step explanation:

  • Because pointer declarations are array declarations, option d is not a pointer declaration.
  • We can say that avariable that contains the actual address of another variable is known as a pointer.
  • We know that, Pointer stores the address of a variable, as opposed to other variables that store data of a certain kind.
  • For instance, whereas an integer pointer keeps the address of an integer variable, an integer variable maintains (or you could say stores) an integer value.
  • The array is given a name and the elements' types are described in a "array declaration."
  • It may also specify the array's element count.
  • A pointer to the type of the array items is regarded to be a variable with array type.
  • A pointer declaration identifies a pointer variable by name and describes the kind of object it points to.
  • A memory address is stored in a variable that has been defined a pointer.
  • Any basic, structural, or union type may be specified using the type-specifier, which identifies the object's type.
  • Arrays, functions, and other pointers can also be referenced by pointer variables.
  • You can postpone specifying the type to which the pointer refers by declaring the type-specifier empty.
  • Such a thing is called a "pointer to void" and is represented by the symbol void *.
  • Any object of any type can be pointed to by a variable that has been declared as a pointer to void.
  • The type to which it points must, however, be explicitly given for each action in order to conduct the majority of operations on the pointer or on the object to which it points.
  • Without a type cast, variables of type char * and type void * are assignment-compatible.
  • A type cast can be used to carry out this conversion.

#SPJ3

Similar questions