struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement
a) cursor.col = cursor.col + 1;
b) col.cursor++;
c) *cursor.col++;
d) pointer
No Answer is Posted For this Question
Be the First to Post Answer
What are the advantage of c language?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.
Is there a way to compare two structure variables?
What are the features of c languages?
What is a const pointer, and how does it differ from a pointer to a const?
what is pointer ?
10 Answers Kernex Micro Systems,
Name the language in which the compiler of "c" in written?
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; 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)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Can a pointer be null?