08-16-2007
what is the base type of enum
helo i have asked in exam what that what is the base type of
enum
options are given bewlo
(1) long int
(2) short int
(3) signed int
(4) unsigned int
can u tell me what is the exact answer from the above option
Regards,
Amit
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can one string type variable changed into the date type variable. (1 Reply)
Discussion started by: rinku
1 Replies
2. Programming
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
Discussion started by: jaganadh
1 Replies
3. IP Networking
Hi Guys,
This is really really urgent. Am looking out for some quick answers.
I'm developing a DNS Resolver client that interprets DNS Query repsonses & pass on the needful to DNS applications.
When an ENUM query(modified to an nslookup naptr query) is issued & an NAPTR RR(Resource Record)... (1 Reply)
Discussion started by: smanu
1 Replies
4. Programming
#include <iostream>
#include <stdio.h>
using namespace std;
typedef struct A
{
enum a{ red,blue,green}a;
}obj11;
obj11 obj1;
int main()
{
//obj1.a=red; // how to set variable ?
cout<<"sizeof struct is n"<<sizeof(obj1);
cout<<"obj1.a is"<<obj1.a;
if... (1 Reply)
Discussion started by: crackthehit007
1 Replies
5. Programming
Say I have a list of enumerations I wish to use to select a variable at compile-time:
enum pins
{
PIN_A=1,
PIN_B=7,
PIN_C=6,
}
int VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7;
#define PIN_TO_VAR(NUM) VAR ## NUM
int main(void)
{
PIN_TO_VAR(PIN_A)=32;... (2 Replies)
Discussion started by: Corona688
2 Replies
6. Shell Programming and Scripting
:wall:
find . -type f -exec ls -l {} \; | awk '$5 $9 {print $5 $9}'
I would like $9 to be without path information, but simply the file name.
Thanks for any consideration. (5 Replies)
Discussion started by: robin_simple
5 Replies
7. Red Hat
Hello,
What is the simplest way to install CentOS 6.1 with console base-system only using official LiveDVD image on VirtualBox machine? I'd like to get simplest console with network support like FreeBSD base installation. Then, install services which I need.
The installer jest extracts the... (2 Replies)
Discussion started by: newbie_develope
2 Replies
8. Programming
I am trying to implement a spare array in C that would be referenced by regular integers.
Right away: define array for maximum possible index elements completely is not what I trying to get!!!
It should be a construction that would have just 2 elements if I need to have just two indexes, like... (8 Replies)
Discussion started by: alex_5161
8 Replies
9. Programming
Hi All,
I came across this error "MIXING ENUM TYPES" when I run my C program against the Coverity Tool. I've made many search relating to the error, but I didnt find the exact solution. Can anyone help me to overcome this.?
Thanks in Advance.!! (3 Replies)
Discussion started by: Parameswaran
3 Replies
LEARN ABOUT HPUX
ultostr_r
ltostr(3C) ltostr(3C)
NAME
ltostr(), ultostr(), ltoa(), ultoa() - convert long integers to strings
SYNOPSIS
Obsolescent Interfaces
DESCRIPTION
Convert a signed long integer to the corresponding string
representation in the specified base. The argument base must be between 2 and 36, inclusive.
Convert an unsigned long integer to the corresponding string
representation in the specified base. The argument base must be between 2 and 36, inclusive.
Convert a signed long integer to the corresponding base 10
string representation, returning a pointer to the result.
Convert an unsigned long integer to the corresponding base 10
string representation, returning a pointer to the result.
These functions are smaller and faster than using for simple conversions (see printf(3S)).
Obsolescent Interfaces
convert long integers to strings.
ERRORS
If the value of base is not between 2 and 36, and return NULL and set the external variable to ERANGE.
WARNINGS
The return values for and point to data whose content is overwritten by subsequent calls to these functions by the same thread.
and are obsolescent interface supported only for compatibility with existing DCE applications. New multi-threaded applications should use
and
AUTHOR
and were developed by HP.
SEE ALSO
strtol(3C), printf(3S), thread_safety(5).
ltostr(3C)