2.main
{
int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
Answer Posted / e.manjuladevi
x=2
Is This Answer Correct ? | 13 Yes | 9 No |
Post New Answer View All Answers
What is an operator?
Write the Program to reverse a string using pointers.
What is the sizeof () operator?
How can I remove the leading spaces from a string?
What is hashing in c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are the advantages of using macro in c language?
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
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
How will you write a code for accessing the length of an array without assigning it to another variable?
Write a program to print "hello world" without using a semicolon?
Explain how do you override a defined macro?
What are external variables in c?
Explain how can I make sure that my program is the only one accessing a file?
Why header files are used?