7 like 0 dislike
Please explain why the following code segment is wrong? And how to fix it?
int PIPLS = new int;
*PIPLS = 1;
*PIPLS = 0;
delete PIPLS;
asked in Midterm 2 by (9.6k points) | 31 views

32 Answers

0 like 0 dislike
Hidden content!
* ** = * *** * * *
* * * *** *
** ** *** * * ***
* ** * ** is * * ** ** be an * ** ** * *** * in * ** ** it is * * * * ** * *** * * * ** be as ** * * * = * * * * * ****
answered by (-155 points)
0 like 0 dislike
Hidden content!
** * *** *** * is * * * * * * in * *
answered by (-434 points)
0 like 0 dislike
Hidden content!
The ** * for * * * be ** not * * so it ** * * ** ** be a * ** ** * * ** * = * **** * * * **
* ****** * *** *
* * ** ** * * **
* * *
answered by (10 points)
0 like 0 dislike
Hidden content!
* * = ** *** *
** *** 1;
* * *** * 0;
*
answered by (-335 points)
0 like 0 dislike
Hidden content!
* *** ** *** * *** ** * ** * ** * * * *****


* * * * * ***


** = **
answered by (-74 points)
0 like 0 dislike
Hidden content!
* = *


** *
* ***


*** * **
answered by (-335 points)
0 0
My answer is here
int PIPLS = new int();
*PIPLS=1:
*PIPLS=0;

delete PIPLS;
0 like 0 dislike
Hidden content!
int * * = * * * * *
* ** * * *
* ** ** * ** **
** ** *** ** ** had no ** * ** * * * it was * *
answered by (-359 points)
0 like 0 dislike
Hidden content!
int = new *
** * * *** * *
** *** * ** * * * *
* * * *
answered by (323 points)
0 0
the request was explain why the following code segment is wrong :(
1 0
I have the answer to the problem so i thought that was enough.. The PIPLS should have an * when it was initialized. Therefore the code will not work.. Corrected code is found above.
0 like 0 dislike
Hidden content!
* *** = * ; ** * * ***** * * * ** * **** * * * **** be ** = * *** ;


* ** ** * * *** * * ** * * *** * * *** * * *



*** ** * * * *
answered by (-136 points)
0 like 0 dislike
Hidden content!
* * * ** *** * * ** * ** be * * as * * * **
answered by (-233 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.68.65.192
©2016-2018

Related questions

7 like 0 dislike
45 answers
8 like 0 dislike
35 answers
8 like 0 dislike
38 answers
8 like 0 dislike
51 answers
8 like 0 dislike
35 answers
2,966 questions
57,291 answers
28,945 comments
938 users