main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}

what will be the output?
}

Answer Posted / vijay

main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++; //num[2]=1; after compile time
printf("%d", num[i]);
}
}

output:- 1

//if you have R&D mode then send the your view .No doubt ,
//it is correct.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are identifiers c?

828


How to write c functions that modify head pointer of a linked list?

730


Compare array data type to pointer data type

806


What is the best way of making my program efficient?

759


Can we compile a program without main() function?

867


Explain how can I manipulate strings of multibyte characters?

978


What is an expression?

836


What are the different types of C instructions?

964


What is an auto keyword in c?

856


What is the difference between %d and %i?

810


What is c definition?

955


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1665


What is a node in c?

730


What is the mean of function?

848


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

844