What is the output of the following code 2 31415926 Hello wo

What is the output of the following code? 2 3.1415926 Hello world! segmentation fault On a CSE machine, what is the size of this object: array? 8 bytes 12 bytes 16 bytes 24 bytes Which of the following is true? p rightarrow next is of type *char p rightarrow next rightarrow s is of type char p rightarrow next rightarrow s [0] is of type *char p rightarrow next rightarrow s[0] is of type char

Solution

1) The output will be 2 as we are adding constant value 1+1 to an int variable z and printing a decimal value .

3) *p is a pointer to object NoteT which is an object of struct node and which holds attributes one pointer s which is of char type , a pointer next which is of type node. Now here option b is true as s of next of p is char type (s is a pointer of type char)

 What is the output of the following code? 2 3.1415926 Hello world! segmentation fault On a CSE machine, what is the size of this object: array? 8 bytes 12 byte

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site