Quantcast
answersLogoWhite
notificationBell

Top Answer
User Avatar
Wiki User
Answered 2015-07-16 18:32:01

If playing by the strict rules of 21, the answer is yes. Then again, if you only need 2 to win, there's really no point in putting up a 3.

001
๐Ÿ™๐Ÿฟ
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Still Have Questions?

Related Questions

What is the use of pointers in C programming Language?

Pointer is a variable which points to the address of another variable. Pointers come handy when we are left with no choices such as calling a function using "pass by reference" method, using memory allocated dynamically etc...


Pointer to 3 dimensons array?

If the array is static you can simply point at the first element. For dynamic arrays you can allocate a contiguous block to a single pointer which can then be subdivided using a one-dimensional array of pointer to pointers, each of which points to a one-dimensional array of pointers, each of which points to a separate object within the array. For extremely large arrays, however, it is better to split the elements into separate one-dimensional arrays, by creating a one-dimensional array of pointer to pointers first, then allocating each of those pointers to a separate one-dimensional array of pointers, each of which points to a separate one-dimensional array of objects. Either way, you must destroy all the individual arrays in the reverse order of creation.


What are the disadvantages of using pointers in program?

If you have shaky hands, a laser pointer can be very distracting.


What is meant by pointer in c plus plus?

A pointer is an object that refers to another object. It contains the address of another object. Using dereference syntax (*) you can treat a pointer as an identifier to the object that it points to. Also, you can implicitly treat pointers and arrays in a similar fashion, because array syntax is simply a means of adding an offset to the value of a pointer, before accessing the object to which it points.


What is pointers in oop?

A pointer is a programming language data type whose value refers directly to (or "points to") another value stored elsewhere in the computer memory using its address.


What disadvantages of using pointers in c plus plus language?

There are no disadvantages of using pointers in C or C++. There are only poor programmers that write code that incorrectly uses pointers.Its like anything else. You need to consider the meaning and use of a pointer, and only use it in its correct context and initialization.It is true that pointers are a sensitive area, causing problems for many programmers, but the rules are the rules, and if you follow them you can write stable code using pointers.Never use a pointer without initializing it by a call to an allocator.Never use a pointer without checking to see if its initialization failed.Never use a pointer beyond the bounds of its allocation.Always deallocate a pointer after its use has ended.Never use a pointer after it has been deallocated.


Uses of pointers?

In computer terminology, pointer is a programming language. It is an important part of C language. Uses of pointers: C pointer, C arrays, C linked list, memory-mapped hardware, Pass-by-address using pointers, Dynamic memory allocation.


In pointers what is the use of pointer variable?

Pointer is a variable that stores the address of another variable . So pointer basically stores the address of another variable and size of pointer can be evaluated by using sizeof operator.


What are the operations that can be performed using a pointer expression?

a. adding and subtracting the integer values b. adding and subtracting the pointers c. incrementing and decrementing the pointers other than tis pointer operations include relational operations such as =,<,>.


Write a program to implement of pointer?

7. Write a program to implement linked lists using pointers.


What is the reason using pointer in c?

We can use pointers in user defined functions, the reason behind is we can access the actual parameters indirectly by using pointers. And also we can reduce the length of a complicated program into very small code. It is easy to manipulate with pointers.


What are the advantage of using pointer in a program?

pointers points to the memory address of another variable.....in functions we have two kind of variables the actual and dummy variable. when we operate on variables..the value of dummy variables are effected, but if we want to make changes in the actual variable then we have to refer to their address..and we can reach to address of the variables by only using pointers.


Write a program for concatanation of two strings using pointer?

You can concatenate two strings using the "+" operator. Note: Java does not support Pointers.


What is smart pointer in C plus plus?

A smart pointer is a resource handle. There are three types of smart pointer: unique, shared and weak (std::unique_ptr, std::shared_ptr and std::weak_ptr, respectively). A unique pointer "owns" the resource it refers to and will destroy that resource when the pointer falls from scope. Unique pointers can be moved (transferring ownership between the pointers) but they cannot be copied. Aside from that, they behave exactly as a "naked" pointer would and incur no runtime overhead. Unique pointers are the ideal method of implementing RAII (resource acquisition is initialisation) because they provide the basic guarantee (no resource leaks). Shared and weak pointers work together to provide shared ownership. A shared pointer "owns" the shared resource while a weak pointer does not. In order to access the shared resource via a weak pointer, the weak pointer must first be converted to a shared pointer to assume temporary ownership. If the original shared pointer falls from scope during this time, the resource's lifetime is extended until the temporary shared pointer falls from scope. Weak pointers can also be used to break circular references between shared pointers. Although there is a runtime cost in using shared pointers, the cost is close to optimal compared with manual solutions using "naked" pointers, but with a much reduced maintenance burden. In multi-threaded applications, shared resources are often inevitable, but are best avoided whenever possible. However, writing lock-free code makes code difficult to maintain, thus shared pointers can often provide a convenient compromise.


How many lazer pointers does it take to cach stuff on fire?

It strictly depends on the strength and power of the laser pointer/s that you are using.


Why java doesn't support pointer?

Pointers are a concept in C wherein the programmer can access the system memory and process it. Pointers are considered the most complex as well as confusing part of the C programming language. almost all C programs using pointers had hours of time spent by the programmers to sort out errors they induced in their code using pointers. So Java conveniently avoided pointers :)


How do you create a pointer to an array of function pointers?

You point at the array the same way you would with an array of any pointer type, by using an additional level of indirection than is employed by the pointers in the array itself. In this case, the array contains pointer-to-function data types (with one level of indirection), thus you must use a pointer-to-pointer-to-function data type (with two levels of indirection) in order to point at the array itself. Had the array contained pointer-to-pointer-to-function data types (where each pointer points to a separate array of pointer-to-function data types), then you'd use three levels of indirection, and so on. You increase the level of indirection by placing an additional asterisk before the pointer's name when you declare the pointer. That is, one asterisk per level.


Disadvantages of pointer?

Pointers are often misunderstood or mistreated by programmers, as they require a measure of care to ensure that they are used correctly. The most common causes of buffer overflows, general protection faults, and other program crashes or unexplained behavior can all be linked to the incorrect use of pointers. Freeing a pointer without setting it to null, for example, can result in a "dangling pointer", where it points to an area of memory that may have been allocated to a different memory structure. Miscalculating the size of a memory structure can cause data corruption or unusual program behavior. Therefore, pointers are often referred to as "dangerous", even though there is no harm in using pointers when they are used correctly.


How does a pointer point to another pointer?

A pointer points to another pointer in the same way that a pointer points to a non-pointer object. Start with a pointer to an object... int a; // the object int *pa = &a; // the pointer pa; // is the value of the pointer *pa; // is the value of the object Now, create a pointer to a pointer to an object int a; // the object int *pa = &a; // the first pointer int **paa = pa; // the second pointer a; // is the value of the object pa; // is the value of the first pointer *pa; // is the value of the object using the first pointer *paa; // is the value of the second pointer **paa; // is the value of the object using the second pointer And so on and so forth... Just don't forget to initialize each pointer along the way!


What is huge pointer generic pointer and far pointer?

Far Pointer is a pointer that is stored using four bytes (32 bits). The bytes are stored little endian or low to high order. A far pointer can access objects up to 16K in size in any memory area. Objects larger than 16K must be accessed using huge pointers This book is basic for c , download and Read this... must required !


What is the use of huge pointer in C?

It has to do with the memory model you are using... If you are using the LARGE or HUGE memory model, then you use HUGE memory pointers. == Huge pointers are like far pointers, just more so: they are always normalized (ie offset part is between 0 and 15), and segment wrapping-around do not occur if you use them.


How are pointer variables initialized?

By assigning an address to them. All pointers must be initialised with the nullptr value (zero) if you cannot initialise with a valid address. If the address falls from scope, you must nullify the pointer.Ideally you should avoid using raw pointers and use resource handles instead (smart pointers). However, C is not an object oriented programming language so raw pointers are unavoidable. The onus is therefore upon the programmer to ensure all pointers are initialised and nullified whenever they are no longer required.


What is a segmentation fault?

An error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers in the source code, dereferencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.


How do you Swap two adjacent elements by adjusting only the pointers and not the data using singly linked list?

Starting with a pointer to the pointer to the first element (p1**), verify the first pointer is not null (*p1 != null), retrieve the pointer to the second element (*p2 = *p1.next) and verify it is also not null (*p2 != null), and then retrieve the pointer to the third element (*p3 = *p2.next). Note that *p3 might be null, but *p1 and *p2 must not be null, or the swap can not be performed. Note that using pointer to pointer syntax allows you to treat pointer to first element the same as pointer to subsequent element, i.e. to not need to handle the special case. Also, since you do need to modify the pointer, you need a pointer to the pointer. Set *p1 = *p2, *p3 = *p1, and *p2 = *p3. Note that these assignments must be done using the original values, not the intermediate value, so you will need some temp pointers. The end result is that **p1 will be ordered after **p2.


What is the difference between far pointer and huge pointer in C programming language?

Huge pointers are fully recognised and evaluated for their entire width.Far pointers only allow normal operations to be done to their offset amount and not the segment or paragraph amount.AnswerNear pointers have a size of 2 bytes. They only store the offset of the address the pointer is referencing. An address consisting of only an offset has a range of 0 - 64K bytes starting from the beginning of DGROUP. A near pointer can be incremented and decremented using arithmetic operators (+, -, ++, and --) through the entire address range. Any attempt to increment a near pointer that has a value of 64K (0xffff) will result in a value of 0. This is referred to as wrapping the pointer. A corresponding result can be expected when attempting to decrement a pointer that contains an address of 0, except the result will be 64K instead of 0. In addition to being incremented and decremented, near pointers can be compared to one another using relational operators ( , ==, >= and Ref: http://bdn.borland.com/article/0,1410,18049,00.HTMLManu Dhawan


Still have questions?

Trending Questions
Best foods for weight loss? Asked By Wiki User
How to lose belly fat? Asked By Wiki User
Unanswered Questions
Saan nagmula ang gitara? Asked By Wiki User
Uri ng tekstong nareysyon? Asked By Wiki User
Can you get Takis at 7 eleven? Asked By Wiki User