answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Hello world is the easiest thing to program on any device but what is its purpose?

"Hello World", is a simple computer prgram, mainly used to demonstrate and teach beginners the most basic syntax of programming languages. This is the first program that many people learn the basics of programming with, and is easily explained to novices.

Can you still be good at physics and engineering if you are not good at computer programming in terms of writing code in every programming language and biology?

"Engineering" is really not a single career, but a term that encompasses just about any career that includes lots of applied science. You will need lots of math and science in any engineering career. But with respect to writing computer code, most engineering careers will only have some introductory programming courses - nothing to be afraid of, really. Just don't take an engineering in computer science or related areas. You can ask the university for a list of subjects taken. Also, if you are not good at writing computer code right now, you might still learn it.

Is it necessary to include stdioh header file in a C compiler if you use printf function in your code?

### posted by Pulkit and Puneet from D.Y.Patil college/pune The ans is NO......... bcoz c compiler already contains the basic functions of STDIO.H in its code segment. ok guys..... ### posted by Pulkit and Puneet from D.Y.Patil college/pune The ans is NO......... bcoz c compiler already contains the basic functions of STDIO.H in its code segment. ok guys.....

Which is the Best business intelligence tools in chennai?

Wafes Technologies Pvt Ltd., an US based company born in 2003 provides services on Data warehousing Business Intelligence tools to its valuable clients and Partner with IBM. The company's corporate office at Chennai requires Real Time Project Consultants for Data Stage. Interested candidates send profiles to mjisa@wafes.com. Website: www.wafes.com. Contact: Jisa Mary John (044- 42606050) Address: Heera Complex, IV Floor, 124/4, G.N. Chetty Road, Chennai - 600 017

What is jadcode?

I'm gonna go ahead and assume you mean "Jade code".

JADE is an object oriented software development and deployment platform. It has its own programming language that exhibits a seamlessly integrated

application server and object-oriented database management system.

It is designed to be an end-to-end development environment, which allows systems to be coded in one language from the database serer to the clients.

As a programming language, its main competitors are Java and C#, while as a database it competes with other object-oriented database and post-relational databases such as Caché and Matisse as well as traditional relational database software packages such as Oracle and Microsoft SQL Server.

Usage of the JADE platform requires per-process fees to be paid. A free limited license is available for development.

What is difference between zero value and NULL strings?

Answer

Programming languages store data in different data types. A zero value would belong to a numeric data type such as float, single, double, integer, long, etc. A null string is a variable that references a string (sequence of characters) that is not yet pointing to anything.

Answer

A null string can also be a string of zero length.


Answer
Several programming languages including C and C++ and several assembly languages store strings in "ASCIZ" format, also called "C string" format.
In those languages, a string variable contains only a pointer to the first character in the string, and the end-of-string is marked with the ASCII NUL character.
A programmer using strings in "ASCIZ" format must be aware of the two different ways that a string variable may store no characters:

One way a ASCIZ variable may store no characters:
A string variable may contain the null pointer constant, which is represented by the constant integer 0. All such "null pointers" point to the same location, represented by the constant integer 0, and often called NULL.
No valid string is ever located at that location.
For example,
char * winner_name = 0;
or equivalently
char * winner_name = NULL;
Typically a programmer must write explicit code to check for this possibility first.
For example,
if( winner_name ){ cout << " The winner is: " << winner_name << " !\n"; };

The other way a ASCIZ variable may store no characters:
The string variable may contain the address of a valid memory location that contains no other characters before the end-of-string NUL character.
Some programs have many such locations in memory, located at a variety of addresses (that address is stored in the string variable), that contain such a "null string" or "zero-length string".
For example,
char buffer[BUFFER_SIZE] = "";
or equivalently
char buffer[BUFFER_SIZE] = {'\0'};
.


Sometimes programmers can write the code that handles normal strings in such a way that that code also handles zero-length strings, with no explicit check for a "zero-length string" possibility.

Which is the best shortest path algorithm?

dijkstra's algorithm (note* there are different kinds of dijkstra's implementation) and growth graph algorithm

What is the programming language used by motoman?

The Yaskawa Electric Corporation uses a wide variety of programming languages. Robots are typically controlled via a high-level interpretive language or script. These languages are typically bespoke languages, often developed in-house, but are generally very easy to use due to their high-level nature. These languages are used to invoke the machine's low-level routines which are typically developed in C++.

Why object oriented programming is popular than other programming language?

Not, I don't think OO languages are used more than the non-OO ones, if your "popularity" is based on the number of the developers.

How do you parenthetically notate a website?

You write the main theme, or part of the website's information. You then write the date that it was last modified or the date that you visited it. Lastly, you write the name of the website.

Example: "Lewis and Clark in North Dakota." 15 Jan 2005. www.state.nd.us/hist/LewisClark/indexFrameset.html>

I hope this helps you! :)

Give two ways to create a shortcut in windows xp?

1. You can right click on an icon and then choose "create shortcut." 2. You can right click on an icon, choose "copy," then go to where you want the shortcut, right click, and choose "paste shortcut."

In regards to adobe installation failure what is error 1714?

Troubleshooting Adobe 1714Hi,

Just download the MSI cleanup utility now if you are using Vista you may need to just read a little bit from http://support.Microsoft.com/kb/936647/en-us if you are using Windows XP then you can easily go to http://download.Microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe

Install the MSI Cleanup Utility and run it, you will find a list of the MSI installed, select the Adobe installation and remove them then install it again, this should definitely work.

Viru ( viru35.blogspot.com )

There are 3 step to repair 1714 error

If you got 1714 error then there is a 94% chance that your computer has registry problems. To repair 1714 error you need to follow the steps below:

* Step 1 - Download a Perfect Optimizer,install this error repair tool.

* Step 2 - Click the Repair All Button.It will scan you PC for Free.

* Step 3 - Then click the Repair All Button again and your done! It is very easy to repair 1714 error.

Here are the URL of Perfect Optimizer: http://www.fixerror365.com/tidpp-1714_error-zz0005

How do I fix my computer when it stops typing and the caps lock button blinks?

Look on the manufactures website and see what the flashes mean. This is not a good sign. Also try connecting another keyboard to see if the keyboard is defective.

Which programming language came first Perl or ASP?

Perl is the older of the two.

Perl was created by Larry Wall in 1987 (ref. en.wikipedia.org/wiki/Perl)

Active Server Pages (ASP) was created by Microsoft as an add-on to their Internet Information Services (IIS) around 1996 (ref. en.wikipedia.org/wiki/Active_Server_Pages)

What is lexical inconsistency?

Lexical refers to the "lexicon" or the kinds of words specific to a certain specialty or field. Think of it as slang or jargon, if you have a lexical inconsistency, the term you use in one specialty doesn't translate to other disciplines.

C plus plus class of rational numbers in which multiplication and division occur?

The following program implements a user-defined class for rational numbers, including operator overloads for all arithmetic operations (+, -, * and /).

Note that the class does not handle 0/n fractions properly because the reciprocal of 0/n is n/0 which is an invalid fraction with undefined value. The problem is that 0/n fractions are perfectly valid (1/2 - 1/2 = 0/2) so you need to cater for them (they simplify to zero), but you cannot divide by them. It is left as an exercise for the reader to provide handlers to cater for this type of exception.

#include<iostream>

#include<string>

#include<sstream>

// GCF: greatest common factor (AKA: GCD, greatest common divisor)

int gcf (int a, int b)

{

// Recursive Euclid algorithm.

return (b != 0 ) ? gcf (b, a % b) : a;

}

// LCM: least common multiple

int lcm(int a, int b)

{

return (b / gcf (a, b)) * a;

}

// Class to store rational numbers (fractions).

class rational

{

friend std::ostream& operator<< (std::ostream&, const rational&);

private:

int m_p;

int m_q;

public:

rational (const int = 1, const int = 1);

rational (const rational&);

rational (const std::string& str);

rational (const char* c_str);

rational& operator= (const rational&);

rational& operator= (const std::string&);

rational& operator= (const char*);

rational& operator-= (const rational&);

rational& operator*= (const rational&);

rational& operator/= (const rational&);

rational& operator+= (const rational&);

rational operator- (const rational&);

rational operator* (const rational&);

rational operator/ (const rational&);

rational operator+ (const rational&);

rational reciprocal() const;

rational& simplify ();

rational& unsimplify (int multiple);

bool operator slash_pos)

{

std::string p = str.substr (0, slash_pos++);

std::string q = str.substr (slash_pos, str.size()-slash_pos);

std::stringstream ssp (p);

std::stringstream ssq (q);

int ip;

int iq;

if (ssp >> ip && ssq >> iq && iq != 0)

{

m_p = ip;

m_q = iq;

return *this;

}

}

}

return *this;

}

// Equality operator.

bool rational::operator== (const rational& other) const

{

// Simplify both fractions before comparing.

rational copy (*this);

rational temp (other);

copy.simplify();

temp.simplify();

return copy.m_p==temp.m_p && copy.m_q==temp.m_q;

}

// Return the reciprocal by value (swap numerator/denominator)

rational rational::reciprocal() const

{

return rational (m_q, m_p);

}

// Simplifies the fraction.

rational& rational::simplify()

{

// Simplify the sign.

if (m_q<0)

{

m_p *= -1;

m_q *= -1;

}

int factor = gcf (this->m_p, this->m_q);

this->m_p /= factor;

this->m_q /= factor;

return *this;

}

// Usimplifies the fraction (use given denominator)

rational& rational::unsimplify (int denominator)

{

this->m_p *= denominator / m_q;

this->m_q = denominator;

return *this;

}

// Test drive the rational class.

int main()

{

// Test arithmetic.

rational a = "1/2";

rational b (2, 5); // e.g., "2/5"

std::cout << a << " + " << b << " = " << a + b << std::endl;

std::cout << a << " - " << b << " = " << a - b << std::endl;

std::cout << a << " * " << b << " = " << a * b << std::endl;

std::cout << a << " / " << b << " = " << a / b << std::endl;

// Test simplifier on negatives and integers.

rational c (2, -5); // -2/5

rational d (-2, -5); // 2/5

rational e (3, -1); // -3

std::cout << c << " simplified is ";

std::cout << c.simplify() << std::endl;

std::cout << d << " simplified is ";

std::cout << d.simplify() << std::endl;

std::cout << e << " simplified is ";

std::cout << e.simplify() << std::endl;

}

Why is the Bubble Sort algorithm also referred ro as Sink Sort?

Bubble sort got its name because if you could watch the way your data was changing, on each iteration you would see the greatest number "bubble" to the top.

Similarly, you could said that you would see the lowest number "sink" to the bottom.