Is there any difficulty with the following : char*a=null; , C/C++ Programming

Is there any difficulty with the following : char*a=NULL; char& p = *a;?

A: The result is indeterminate. You must never do this. A reference has to always refer to some object.

 

Posted Date: 3/19/2013 9:01:38 AM | Location : United States







Related Discussions:- Is there any difficulty with the following : char*a=null; , Assignment Help, Ask Question on Is there any difficulty with the following : char*a=null; , Get Answer, Expert's Help, Is there any difficulty with the following : char*a=null; Discussions

Write discussion on Is there any difficulty with the following : char*a=null;
Your posts are moderated
Related Questions

Command-line arguments are passed into programs using the arguments of main(). Here's a quick example, for a program called by typing "progname file.txt 1 2.7": #include #incl

The default Constructor and Destructor If you fail to write a constructor and destructor function,  the compiler automatically supplies them for you. These functions have publi

#include #include #include #include #include //*Variables Used in Programs*// int k; int l; int d; int won; int loss; int cash = 500;

HOW THE C PROGRAM CODING IMPLEMENTED DY ITSELF UNDERSTANDING . ALSO HOW I CAN A BECOME A GOOD PROGRAMMER IN C WHAT I DO FOR GOOD PROGRAMMING ,TELL ME HOW C CODING DEVELOP DY ITSELF

What do you mean by a sequential access file? - When writing programs which store and retrieve data in a file, it's possible to designate that file into various forms. - A s

Refactoring Project Description: TASK 1 - DESIGN ALGORITHM You are required to design a suitable solution algorithm by using structured chart, pseudocode or flowchart. Thi

Describe spaghetti programming. - Spaghetti programming refers to codes which tend to get tangled and overlapped throughout the program. - It makes a program complex and ana


Question : (a) One of the most common sorting techniques we have in programming is the ‘Bubble Sort'. This technique will be used to sort an array of elements in ascending or