<< < 1 2 3 4 5 6 7 8 > >>   Sort: Date

"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, 8208👍, 0💬

Entering Comments in JSP Pages
What are the two kinds of comments in JSP and what's the difference between them? &lt;%-- JSP Comment --%&gt; &lt;!-- HTML Comment --&gt; HTML comments are visible on the client side. But JSP comments are not visible on the client side.
2007-04-03, 8126👍, 0💬

JSP Tags vs. JavaBeans
What is difference between custom JSP tags and JavaBeans? Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries that can be used in any number of JSP files. To use custom JSP tags, you ne...
2007-04-03, 8126👍, 0💬

How you will enable front-end validation based on the xml in validation.xml
How you will enable front-end validation based on the xml in validation.xml? The &lthtml:javascript&gt tag to allow front-end validation based on the xml in validation.xml. For example the code: &lthtml:javascript formName=logonForm dynamicJavascript=true staticJavascript=true/&gt ge...
2007-12-28, 8084👍, 0💬

ASCII, Unicode, UTF-8 and UTF-16
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bi...
2007-03-03, 8051👍, 0💬

Bitwise Operations
Which bit wise operator is suitable for turning on a particular bit in a number? The bitwise OR operator. In the following code snippet, the bit number 24 is turned ON: enum { KBit1 = 0x00000001 KBit2 = 0x00000010, KBit3 = 0x00000100, ... }; some_int = some_int | KBit24;
2007-02-26, 8047👍, 0💬

DBMS questions with answers
it will be very helpful if you send some important Questions with Answers of DBMS Tell us what types of DBMS questions you are interested in. We will send you what we have collected so far.
2008-08-12, 8018👍, 0💬

Macro vs. Function
Advantages of a macro over a function? Macro gets to see the Compilation environment, so it can expand __DATE__ __TIME__ __FILE__ #defines. It is expanded by the preprocessor. For example, you can't do this without macros. #define PRINT(EXPR) printf( #EXPR "=%d\n", EXPR) PRINT( 5+6*7 ) // expands in...
2007-02-26, 7962👍, 0💬

Printing Permutaions of a String
Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. void PrintPermu (char *sBegin, char* sRest) { int iLoop; char cTmp; char cFLetter[1]; char *sNewBegin; char *sCur; int iLen; static int iCount; iLen = strlen(sRest); i...
2007-02-26, 7923👍, 0💬

How to measure functional software requirement specification (SRS) documents?
How to measure functional software requirement specification (SRS) documents? Well, we need to define some standard tests to measure the requirements. Once each requirement is passed through these tests you can evaluate and freeze the functional requirements. Let’s take an example. You are working o...
2009-03-20, 7922👍, 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, 7908👍, 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, 7858👍, 0💬

Which is the best place to store ConnectionString in Dot Net Projects?
Which is the best place to store ConnectionString in Dot Net Projects? I am about to deploy my first ASP.NET project. But, I was used to store my variables, such as connection strings, in the global.asa file, in an application. However, these variables are different on my development and production ...
2009-03-18, 7857👍, 0💬

HTML Error Checking
How can I check for HTML errors? HTML validators check HTML documents against a formal definition of HTML syntax and then output a list of errors. Validation is important to give the best chance of correctness on unknown browsers (both existing browsers that you haven't seen and future browsers that...
2007-03-03, 7854👍, 0💬

What are database triggers?
What are database triggers? How are the triggers fired? Read this collection of questions and answers on SQL Server triggers : A collection of 20 FAQs on creating and managing triggers. Clear explanations and tutorial exercises are provided on creating DML and DDL triggers; altering, dropping, enabl...
2008-08-12, 7837👍, 0💬

How Do You Uninstall JUnit?
How Do You Uninstall JUnit Uninstalling JUnit is easy. Just remember these: Delete the directory that contains the JUnit JAR file and other JUnit files. Remove the JUnit JAR file from the CLASSPATH environment variable. No need to stop any background processes, because JUnit does not use background ...
2008-01-17, 7835👍, 0💬

What is application domain? Explain.
What is application domain? Explain. An application domain is the CLR equivalent of an operation system's process. An application domain is used to isolate applications from one another. This is the same way an operating system process works. The separation is required so that applications do not af...
2009-03-06, 7818👍, 0💬

String Concatenation
What will be printed as the result of the operation below: main() { char *p1; char *p2; p1=(char *)malloc(25); p2=(char *)malloc(25); strcpy(p1,"Cisco"); strcpy(p2,"systems"); strcat(p1,p2); printf("%s",p1); } Answer: Ciscosystems
2007-02-26, 7811👍, 0💬

Did VB6 support multi-threading ?
.NET INTERVIEW QUESTIONS - Did VB6 support multi-threading ? While VB6 supports multiple single-threaded apartments, it does not support a freethreading model, which allows multiple threads to run against the same set of data.
2009-11-03, 7770👍, 0💬

Address of the First Element of an Array
When does the compiler not implicitly generate the address of the first element of an array? Whenever an array name appears in an expression such as: array as an operand of the sizeof operator array as an operand of &amp; operator array as a string literal initializer for a character array Then ...
2007-02-26, 7761👍, 0💬

List of Waiting Threads on an Object
Can each Java object keep track of all the threads that want to exclusively access to it?
2007-03-03, 7727👍, 0💬

Static Variables
The following variable is available in file1.c, who can access it? static int average; Answer: all the functions in the file1.c can access the variable.
2007-02-26, 7721👍, 0💬

What Is Finalization
What is the purpose of finalization? The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.
2007-03-03, 7715👍, 0💬

How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for
How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site? JavaScript's greatest potential gift to a Web site is that scripts can make the page more immediately interactive, that is, interactive without having ...
2024-01-21, 7674👍, 3💬

💬 2023-09-24 Charchita: Nice but long answer.

<< < 1 2 3 4 5 6 7 8 > >>   Sort: Date