Wipro Placement Questions & Answers :: Wipro
361 / 362
Tea worth Rs. 126 per kg and Rs. 135 per kg are mixed with a third variety in the ratio 1 : 1 : 2. If the mixture is worth Rs. 153 per kg, the price of the third variety per kg will be:
ARs. 175.50
BRs. 180
CRs. 170
DRs. 169.50
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
362 / 362
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 :: sudhanIn 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
Tags: TCS Accenture Amazon Capgemini Cognizant Goldman Sachs IBM L&T Infotech Happiest Minds Wipro Tech Mahindra
Here is the list of questions asked in Wipro Aptitude Test Question with Answers page 37. Practice Wipro Written Test Papers with Solutions and take Q4Interview Wipro Online Test Questions to crack Wipro written round test. Overall the level of the Wipro Online Assessment Test is moderate. Only those candidates who clear the written exam will qualify for the next round, so practic all the questions here and take all the free tests before going for final selection process of Wipro