Sign Up | Sign In
Ask Questions & Get Answers at ibibo sawaal

What's the difference between an enumeration and a set of preprocessor #defines?  

Asked in Kanpur at 6:57 PM on October 13, 2008

Tags: difference enumeration set preprocessor defines

Report abuse
keshav
keshav

Related Search

 

What are enumerations?

An enumeration is a type that can hold a set of constant values that are defined by the user. Once you define an enumeration you can use it like integer types. Enumerations are good for collecting enumerators are converted to integral type for any arithmetic operation.With reference to: http://snipr.com/4z3o1...An enumeration is a data type consisting of a set of named values that represent integral

Posted in Computers & Technology by chinni. at 5:28 AM on November 04, 2008

Does C replace C?

machine code. However to make full use of the .NET environment e.g. garbage collection, a set of extensions are required to standard C. In .NET 1.x this extended language is called Managed Extensions for C rather than machine code. However to make full use of the .NET environment e.g. garbage collection, a set of extensions are required to standard C. In .NET 1.x this extended language is called Managed

Posted in Computers & Technology by Radhe Radhe at 8:28 PM on May 30, 2008
Tags replace

Difference between HashMap and HashTable?

is that iterator in the HashMap is fail-safe while the enumerator for the Hashtable isnt. If you change the map while iterating, youll know.And, a third difference is that HashMap permits null values in it, while Hashtable doesnt.Some other significant differences between HashMap and Hash Table are given below:1. HashMap provides Collection views instead of direct support for iteration via Enumeration objectsas

Posted in Computers & Technology by jks marven at 1:01 PM on May 28, 2008

Whats the difference between an enumeration and a set of preprocessor defines?

There is little difference. The C Standard says that enumerations have integral type and that enumeration constants are of type int, so both may be freely intermixed with other integral types, without errors. If, on the other hand, such intermixing were disallowed without explicit casts, judicious use of enumerations could catch certain programming errors.Some advantages of enumerations

Posted in Kanpur by keshav at 12:55 AM on October 14, 2008

What is the difference between an enumeration and a set of preprocessor defines?

At the present time, there is little difference. The C Standardsays that enumerations may be freely intermixed with otherintegral types, without errors. If, on the other hand, suchintermixing were disallowed without explicit casts, judicioususe of enumerations could catch certain programming errors.Some advantages of enumerations are that the numeric values areautomatically assigned, that a debugger may

Posted in Computers & Technology by yamaha at 8:17 AM on February 02, 2008
Tags bca

What is the difference between an enumeration and a set of preprocessor defines?

At the present time, there is little difference. Although many people might have wished otherwise, the C Standard says that enumerations may be freely intermixed with other integral types, without nonfatal warnings; some programmers also resent not havingcontrol over the sizes of enumeration variables...well, At the present time, there is little difference. Although many people might have wished

Posted in Computers & Technology by sanjay at 3:56 PM on November 17, 2008

I have to ask some questions about software testing1. types of software faults2.orgins of software deffects,cost of repairing deffects.

are not measurable--there is no guarantee that two different individuals looking at the same set of failure reports and the same set of fault definitions will count the same number of underlying faults. The incomplete will produce invalid results. In this paper, we base our recognition and enumeration of software faults on the grammar of the language of the software system. By tokenizing the differences between a version

Posted in Computers & Technology by Arun thampi at 1:14 PM on June 07, 2008

can any1 give some info regarding approx. fee & duration 2 complete SAP course

One from our organizations point of view. The others enumerated above will be discussed in subsequent blogs.SAP now are moving away from describing their system as a set of modules, and now are using should know in SAP Business One from our organizations point of view. The others enumerated above will be discussed in subsequent blogs.SAP now are moving away from describing their system as a set

Posted in Computers & Technology by Sravan Kumar at 12:10 AM on June 05, 2008

What is the difference between Iterator and Enumeration?

ArrayList, LinkedList, HashSet ,Tree Set etc can use the Iterator interface.Iterator actually adds one method that Enumeration doesnt has: remove.Enumeration and Iterator both are interfaces present in util package. Enumeration is a legacy interface which does not come under the collection framework, wheras Iterator is an interface present

Posted in Computers & Accessories by L Prasad at 1:22 PM on February 03, 2009

What standard types does C use?

, structures, enumerators, booleans and characters while reference types include objects, strings, classes, interfaces and delegates....C supports a very similar range of basic types to C, including int, long, float, double, char, string, arrays, structs and classes. However, dont assume too much. The names may be familiar, but many of the details are different. For example, a long is 64 bits in C, whereas in C

Posted in Computers & Technology by Radhe Radhe at 8:28 PM on May 30, 2008

What are the distinctions between GRUB and LILO boot loaders ?

different from both Linux and the Hurd: both IDE and SCSI drives are named hdN,M. N is the drive number zero based as enumerated by the BIOS. That is, Grub makes no distinction between IDE and SCSI disks. MThe main difference are given below-All boot loaders work in a similar way to fulfill a common purpose. But LILO and GRUB do have a number of differences: LILO has no interactive command interface

Posted in Computers & Technology by Sonam Kalra at 7:17 PM on August 18, 2008

What are Microsoft Security Zones?

to High, Medium, Medium-low, or Low. They can also set to a custom configuration by the user.Security zones are groupings of sites that give them different levels of access to the local system. The zoningMicrosoft security zone are explained as-Security Zones are security settings for websites that you may open with Internet Explorer.These settings can be set to High, Medium, Medium-low, or Low

Posted in Computers & Technology by Lucy at 10:44 PM on June 23, 2008

which language coahing is better[C or ZAVA

of templates, static polymorphism, generic programming, and multiparadigm programming. This is way beyond the scope of the much-hyped proprietary languages. Another key difference is that C supports user languages. Another key difference is that C supports user-defined types to the same extent as built-in types. This - especially in combination with the use of templates, constructors, and destructors

Posted in Computers & Technology by Rahul at 9:44 PM on July 24, 2008

how can we hide settings tab in tools>options>advanced>network >settings in mozilla firefox2.0.0.15

this does involve a little configuring, and settings tweaking, dont be worried, as it is really quite easy to do.First, open up Mozilla Firefox, and see if you can surf the Internet with it. If you can, then dont worry about changing your internet settings-you are good to go with Firefox! If you are getting a Cannot connect or Page not found error, you may have to configure your internet settings in Firefox

Posted in Computers & Technology by Sridhar at 3:06 PM on July 07, 2008

Similar Questions

Left Ads
© 2006 - 2013 ibibo Web Pvt Ltd. All rights reserved.