Sure will consider this henceforth... I read that accessing array elements using pointer is much faster than using subscript but as of now it doesn't matter much to me...
PS: As array dimensions...
Type: Posts; User: dungeon
Sure will consider this henceforth... I read that accessing array elements using pointer is much faster than using subscript but as of now it doesn't matter much to me...
PS: As array dimensions...
Thanks...:) made it work using below function prototype & function call in main
void display(int, int, int[][col]);
display(row, col, X);
and below function definition
void...
true but... there is difference between passing a pointer to the first element & passing a pointer to the (whole) array
Thanks... but do you mean to say that we can't achieve this task (in C) using a pointer to the array?
Refer below code for variable length array:
#include <stdio.h>
int main()
{
int row, col;
Thanks for the pointer man... will study this & surely update... but it might take some time (as i am bit slow :))
Following Window Procedure draws a specific pattern using WM_PAINT message (executes correctly). Now when user hit the UP arrow key, I want this pattern to move from position x=500, y=250 (declared...