printf ("%s %d %f\n", (*ptr+i).a, (*ptr+i).b, (*ptr+i).c);
[Error] invalid operands to binary + (have 'struct name' and 'int')
where ptr is a pointer to the structure and allocated dynamic memory using malloc. Any suggestion would be helpful.
Thanks in advance.