main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / lucky
out put is 3 and it is correct
Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
What is the main difference between calloc () and malloc ()?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Is register a keyword in c?
What is the use of sizeof?
Explain how can I avoid the abort, retry, fail messages?
Why we write conio h in c?
Explain spaghetti programming?
What are the 5 organizational structures?
Is c language still used?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
How can I convert a number to a string?
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
How can I list all of the predefined identifiers?
What is the difference between ‘g’ and “g” in C?
develop algorithms to add polynomials (i) in one variable