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

Post New Answer

More C Interview Questions

Is fortran still used today?

0 Answers  


What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.

11 Answers   TCS,


Are pointers integers in c?

0 Answers  


What are Macros? What are its advantages and disadvantages?

0 Answers   TCS,


write a program to concatenation the string using switch case?

0 Answers  






How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

0 Answers   Infosys,


Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;

7 Answers  


If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

1 Answers   TCS,


Is printf a keyword?

0 Answers  


Explain what are multibyte characters?

0 Answers  


What is wrong with this code?

0 Answers  


How does C++ help with the tradeoff of safety vs. usability?

1 Answers  


Categories