Font size:
Print
Question: Valid C statement to allocate 20 bytes to an integer pointer P is:
1. P=(int*) malloc (20)
2. *P=(int*) malloc (20;)
3. P=(int*malloc*20)
4. &P=(int*) malloc (20)
Check Answer
1. P=(int*) malloc (20)
2. *P=(int*) malloc (20;)
3. P=(int*malloc*20)
4. &P=(int*) malloc (20)
Check Answer