<< < 169 170 171 172 173 174   Sort: Rank

"union" Data Type
What's the output of the following program? And why? #include main() { typedef union { int a; char b[10]; float c; } Union; Union x,y = {100}; x.a = 50; strcpy(x.b,"hello"); x.c = 21.50; printf("Union x : %d %s %f n",x.a,x.b,x.c); printf("Union y : %d %s %f n",y.a,y.b,y.c); }
2007-02-26, 7486👍, 0💬

Deteting Circular Linked List
Can you tell me how to check whether a linked list is circular? Create two pointers, and set both to the start of the list. Update each as follows: while (pointer1) { pointer1 = pointer1-&gt;next; pointer2 = pointer2-&gt;next; if (pointer2) pointer2=pointer2-&gt;next ;if (pointer1 == poi...
2007-02-26, 7602👍, 0💬

Reducing the Final Size of an Executable File
How to reduce the final size of an executable file? Size of the final execuatable can be reduced using dynamic linking for libraries.
2007-02-26, 7629👍, 0💬

printf() and sprint() Functions
What is the difference between "printf(...)" and "sprintf(...)"? sprintf(...) writes data to the charecter array whereas printf(...) writes data to the standard output device.
2007-02-26, 17507👍, 0💬

calloc() and malloc() Functions
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of memory for an array of elements of a certain size. By default the block is initialized to 0. The total number of memory allocated will be (number_of_elements * size). malloc(...) takes in only a singl...
2007-02-26, 7964👍, 0💬

printf() Function
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print the value of x. But as here, there is nothing after "%d", so compiler will show in output window gurbage value. 2. When we use %d the compiler internally uses it to access the argument in the stack (a...
2007-02-26, 7922👍, 0💬

What Is C Language
What Is C Language? The C programming language is a standardized programming language developed in the early 1970s by Ken Thompson and Dennis Ritchie for use on the UNIX operating system. It has since spread to many other operating systems, and is one of the most widely used programming languages. C...
2007-02-26, 7202👍, 0💬

Tag &lt;?= ... ?&gt; in PHP
What does a special set of tags &lt;?= and ?&gt; do in a PHP script page? &lt;?= expression ?&gt; allows you to output the value of the specified expression into the HTML document directly.
2006-09-01, 8244👍, 0💬

Math
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she open to? a. 122 and 123 b. 242 and 243 c. 16 and 17 d. 24 and 25 a.
2006-09-01, 7900👍, 0💬

Expression Evaluation
What is the value of this expression? +1-2*3/4 -0.5
2006-09-01, 7588👍, 0💬

Values of Auto Incremented Columns
Assuming that the structure of a table shows two columns like this: --------+------------+------+- ----+--------+---------------Field | Type | Null | Key | Default| Extra --------+------------+------+- ----+--------+---------------user_id | int(15) | | PRI | NULL | auto_increment email | varchar(80)...
2006-09-01, 7201👍, 0💬

<< < 169 170 171 172 173 174   Sort: Rank