5,194 views
4 4 votes

What is the output of this C  code?

#include<stdio.h>
void main()
{
    int k=5;
    int *p=&k;
    int **m=&p;
    printf("%d %d %d",k,*p,**m);
    
}
  1. 5 5 5 
  2. 5 5 junk
  3. 5 junk junk
  4. compile time error

4 Answers

Answer:
Position:
Show:

Related questions

11 11 votes
2 answers 2 answers
10.5k
10.5k views
sourav. asked Jul 3, 2016
10,502 views
What will be output of the following program? Assume that you are running this program in little-endian processor.#include<stdio.h int main() { short a=320; char *ptr; pt...
8 8 votes
2 answers 2 answers
8.8k
8.8k views
Desert_Warrior asked Jul 3, 2016
8,784 views
Which one of the following is correct about the statements given below?All function calls are resolved at compile time in C langAll function calls are resolved at compile...
8 8 votes
2 answers 2 answers
4.8k
4.8k views
Arjun asked Jul 6, 2016
4,759 views
A simple two-pass assembler does which of the following in the first pass:Checks to see if the instructions are legal in the current assembly modeIt allocates space for t...
8 8 votes
3 answers 3 answers
12.5k
12.5k views
Arjun asked Jul 6, 2016
12,509 views
At a particular time of computation the value of a counting semaphore is 7. Then 20 $P$ operations and $x$ $V$ operations were completed on this semaphore. If the new val...