Telegram Group 🔥🔥🔥
Get answers in minutes
Questions answered :
48
/50
Answer verified
Point out the correct statement which correctly allocates memory dynamically for 2D array following program
#include<stdio.h>
#include<stdlib.h>
int main()
{
int *p, i, j;
/* Add statement here */
for(i=0; i<3; i++)
{
for(j=0; j<4; j++)
{
p[i*4+j] = i;
printf("%d", p[i*4+j]);
}
}
return 0;
}
🗓 Apr 15, 2024
votes
Zoe
🌐 India
Loved in it, thanks
votes
Sanket
🌐 India
Thanks, I will pass in exam now :)
Was your question answered?
Thanks for the feedback! ✅
Want to get famous? 📸
Answer question and get 🤩 high-lighted on our homepage.