subject

Consider the following code: #include #include int main(void) { int *x = malloc(sizeof(int) * 5); for(int i = 0; i < 5; i++) { *(x+i) = i; } code a return 0; } assume that size of an integer is 4 bytes and value of x to be 1000 in decimal. which of the the following 4 cases for code a are correct? 1. if code a is: int *y = x+1; printf("%d %d %d", x, y, y-x); output will be: 1000 1001 1 2. if code a is: printf("%d ", *x); x += 2; printf("%d", x); output will be: 0 2 3. if code a is: int *y = x + 4; printf("%d %d %d" , x, y, *(y-3)); output will be: 1000 1016 1 4. if code a is: int *y = x + 2; printf("%d %d %d" , x, y, y-x); output will be: 1000 1008 2

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
Which factor is the most important when choosing a website host? whether customers will make secure transactions the number of email accounts provided the purpose of the website the quality of the host control panel
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Consider the series where in this problem you must attempt to use the ratio test to decide whether the series converges. compute enter the numerical value of the limit l if it converges, inf if it diverges to infinity, minf if it diverges to negative infinity, or div if it diverges but not to infinity or negative infinity.
Answers: 1
You know the right answer?
Consider the following code: #include #include int main(void) { int *x = malloc(sizeof(int) * 5);...
Questions
question
Mathematics, 17.02.2021 21:10
question
Mathematics, 17.02.2021 21:10
question
Arts, 17.02.2021 21:10
question
Mathematics, 17.02.2021 21:10
question
Mathematics, 17.02.2021 21:10
question
English, 17.02.2021 21:10
question
Social Studies, 17.02.2021 21:10
Questions on the website: 13722363