What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / praveenkumar managuli
char s[]; this allocate memory equal tosize of string
and char *s; holds the address of first charecter
| Is This Answer Correct ? | 23 Yes | 4 No |
Post New Answer View All Answers
Why do we use header files in c?
why programs in c are running with out #include
what is use of malloc and calloc?
What are the two types of functions in c?
What are the advantages of external class?
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:
write a program to copy the string using switch case?
What is difference between structure and union in c programming?
What is difference between structure and union?
Write a program to swap two numbers without using third variable in c?
can any one tel me wt is the question pattern for NIC exam
Describe static function with its usage?
Is there anything like an ifdef for typedefs?
What is c language used for?
Does free set pointer to null?