Difference between char a[] = "string", Computer Engineering

What is the difference between char a[] = "string"; and char *p = "string";?

Ans) In the first case 6 bytes are assigned to the variable a which is fixed, where as in the second case if *p is assigned to some other value the assign memory can change.                        



Posted Date: 4/8/2013 6:05:08 AM | Location : United States

Related Discussions:- Difference between char a[] = "string", Assignment Help, Ask Question on Difference between char a[] = "string", Get Answer, Expert's Help, Difference between char a[] = "string" Discussions

Write discussion on Difference between char a[] = "string"
Your posts are moderated
Related Questions
Stack unwinding in C++ is a process during exception handling when the destructor is known for all local objects the place where the exception was thrown and where it is caught.

List the typical functions of operating systems. Classical functions of operating system are given as: (1) Process management: A process is a program throughout execution.

Explain the term middleware in context of RPC. A variety of commercial tools have been urbanized to assist the programmer in constructing client- server software. These tools a

Define the term busy hour Busy Hour: Continuous 1- hour period lying completely in the time interval concerned, for that the traffic volume or the number of calls attempts is

DVD is a new technology very same to compact discs. A DVD looks just like an ordinary compact disc, though a DVD can hold up to 25 times as much as a CD!! That's 18 gigabytes!! Thi

Write a GUI/MP3 program called MP3Random that reads all MP3 les in a directory and plays them in random order. The GUI should have a little window with: 1. A button Next that s

Q. What is Access latency and Rotation Speed? Access latency: A disk access basically moves the arm to selected cylinder and waits for rotational latency that may take less t

What is an I/O Interface? Input-output interface provides a method for transferring binary information among internal storage, like memory and CPU registers, and external I/O d

Multiple Instruction and Multiple Data stream (MIMD) In this association, multiple control units and multiple processing elements are prepared as in MISD. But the discrepancy i

Take the last two digits of your UTCID. This is your duty cycle in percent. If your duty cycle is less than 10%, add 30 to your number. Create an assembly program that runs on t