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
Q. What do you mean by instruction cycle? We have considered the instruction execution in previous section. Now let's consider more about different types of instruction executi

attribute primitive

Give an account of modems used in data transfer. Modem: Modems are usually provided through network operators (Department of Telecommunication in India) or through vendors wh

Explain Sequential logic circuit Ans. Sequential logic circuit:- (i) Output not only depends upon the recent state of the input but also depend upon the earlier state

Protocol used to monitor and control network devices operates at? Protocol operates at application layer to monitor and control network devices operates.

With the help of a truth table explain the working of a half subtractor. Draw the logic diagram using gates. Ans: Half Subtractor: For the subtraction of B (subtrahend) f


Q. Selecting integerated learning experiences? It is important that we select appropriate experiences for children, more so those that are from the child's world and emerge fro

Any function can be expressed in a truth table.A truth table lists all possible combinations ofinputs and gives the output produced in eachcase.Truth tables must include all combin

Ask qurecurrion for short noteestion