Hi,
while running the below mentioned code i got a error can any one help to fix these error.
The error message is"cannot convert 'int (*)(s) to int*' in function main() " and "'p' is assigned a value that never used in function main()"
Code:
#include<stdio.h>
#include<conio.h>
main()
{
int s[4][2] = {
{123, 33},
{124, 35},
{125, 36},
{126, 37}
};
int (*p)[2];
int i, j, *pint;
for (i = 0; i <= 3; i++) {
p = &s[i];
pint = p;
printf("\n");
for (j = 0; j < 1; j++)
printf("%d", *(pint + j));
}
getch();
clrscr();
}