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


Please Help Members By Posting Answers For Below Questions

What is the main difference between calloc () and malloc ()?

574


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1469


Is register a keyword in c?

638


What is the use of sizeof?

557


Explain how can I avoid the abort, retry, fail messages?

592






Why we write conio h in c?

568


Explain spaghetti programming?

684


What are the 5 organizational structures?

569


Is c language still used?

538


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.

1066


How can I convert a number to a string?

608


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

766


How can I list all of the predefined identifiers?

581


What is the difference between ‘g’ and “g” in C?

2575


develop algorithms to add polynomials (i) in one variable

1746