[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Goldman Sachs Aptitude Test Questions and Answers

25.27K

Tot. Mock Test: 0


Total Qs: 1+

NA
SHSTTON
75
Solv. Corr.
139
Solv. In. Corr.
214
Attempted
0 M:27 S
Avg. Time

1 / 1

Choose the correct option.

Which of the choices is true for the mentioned declaration?

const char *p;
and
char * const p;

Choose one of them:


AYou can't change the character in both

BIn first case, you can't change the character and second case you can’t change the pointer

CYou can't change the pointer in both

DIn first case you can't change the pointer and in second case you can't change the character

ENone of these

Answer: Option B

Explanation:

Here is no explanation for this answer

ShortCut By :: sudhan

In C programming language, *p represents the value stored in a pointer and p represents the address of the value, is referred as a pointer. const char* and char const* says that the pointer can point to a constant char and value of char pointed by this pointer cannot be changed.

 const char *ptr : This is a pointer to a constant character. You cannot change the value pointed by ptr, but you can change the pointer itself. “const char *” is a (non-const) pointer to a const char.

char *const ptr : This is a constant pointer to non-constant character. You cannot change the pointer p, but can change the value pointed by ptr. 


Submit Your Solution


Goldman Sachs Aptitude Test Questions and answers

Goldman Sachs Aptitude Test have 66 MCQs questions and for which alloted tiime is 90 Mins. At this page of q4interview you can practice question for Goldman Sachs drive, level of the questions are same. You should answer very carefully as for reach wrong answers you will get -2 marks, however for each correct answer you will get +5 marks. In this test there will be total 6 sections:
  1. Numerical Computations
  2. Numerical Reasoning
  3. Abstract Reasoning
  4. Diagrammatic Reasoning
  5. Logical Reasoning
  6. Verbal