Why doesn't the code "a[i] = i++;" work?

Answer Posted / kk

undefined behaviour

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files in c programming?

658


Explain the difference between the local variable and global variable in c?

605


What are linked lists in c?

651


Explain the use of 'auto' keyword in c programming?

684


What does printf does?

749






Which is better between malloc and calloc?

672


How arrays can be passed to a user defined function

580


What are all different types of pointers in c?

580


In c programming language, how many parameters can be passed to a function ?

632


What is the explanation for cyclic nature of data types in c?

648


Which header file is used for clrscr?

583


Why does everyone say not to use scanf? What should I use instead?

682


What is #include stdio h?

688


Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

1514


How can you find the day of the week given the date?

618