answersLogoWhite

0

📱

C Programming

Questions related to the C Computer Programming Language. This ranges all the way from K&R to the most recent ANSI incarnations. C has become one of the most popular languages today, and has been used to write all sorts of things for nearly all of the modern operating systems and applications. It it a good compromise between speed, power, and complexity.

9,649 Questions

How do you make a computer type the computer language B-A-S-I-C?

Because in Computer's they have many type of keyboard. And it has the name "BASIC" because B is for bandic, A is for applan, S is for sonnd and IC is i covering... Thanks for reading!!

What is node class?

When creating linked lists (singly- or doubly-linked), the elements in the list are known as nodes. A node class defines how these nodes work. Generally, a node will contain a member pointer to the data it represents (which is typically an abstract data type rather than a concrete data class), as well as a pointer to the next node in the list, and the previous node if it is doubly-linked. The list itself maintains a member pointer to the head node in the list, and the tail node if doubly-linked.

In this way, the list is only concerned with the nodes, not the data within those nodes. By the same token the nodes are only concerned with their nearest neighbouring nodes, not the list, nor the data they contain. Similarly, the data is only concerned with itself and other data, it is not concerned with the fact it may be part of a list or a node.

All work concerning nodes can then be delegated to the nodes themselves, while any work relating to the data can be delegated to the data. Thus each class plays a small but clearly defined role within the list; no class does any more than it has to, which greatly simplifies the list interface.

Can you return automatic variable by reference?

There is nothing restricting you from doing so in the C language. However, that variable's memory will have been freed from the stack, and so it would be unsafe to modify that value or depend on the value, which will change the moment the stack overwrites the previous value. Only values stored in the heap may be safely returned by reference.

What is the difference between predifined data structure and user define data structure?

A predefined structure or, more generally, a predefined type, is a type that is defined internally by the compiler implementation. For instance Microsoft's implementation includes predefined runtime information and GUID structures, amongst other predefined types such as size_t. These types are built in to the compiler itself, so you won't find them in a header file.

By contrast, user-defined structures (types) are those you define yourself, or are provided for you by a third party.

C code for?

It's used to make simple program using a compiler such as visual basics which is a windows program that makes .exe files. C was made so programmers could easily and quickly make programs, a compiler convert the C coding into binary and allows it to be opened with your specifix operating system.

Why you use inner loop and outer loop?

Sometimes you have to use nested loops, in this case one of them is the outer, the other is the inner.

What is double hashing in data structure?

if collision is occurred in hash function then we can solve this problem by using double hash function

What is an if or nested if statement?

Convenience here is in terms of the human reader of the program; a good optimizing compiler may treat both the switch and the nested if-else as pretty much the same thing.

For me, using a switch is easier because it is easier to add additional cases to the switch. It can be (in my opinion) harder and more dangerous logically to fit additional test cases in a nested if.

Finally, in some compilers the switch statement may be implemented in the hardware, so you end up with better performance.

What happens if you create a loop in C program that never ends?

then your program will never ends, too unless you pressing the ctrl+c or kill it through your os.

can i know the purpose of you creating the loop that never ends? is it just a mistake or are you doing it on purpose?

How do you represent sign and magnitude of a floating point number in c plus plus?

#include<iostream>

#include<iomanip>

#include<limits>

#include<cmath>

using namespace std;

int main()

{

double pi = 4 * atan(1.0);

cout << pi << endl;

cout << fixed << pi << endl;

cout << scientific << pi << endl;

pi /= 1000000.0;

cout << setprecision (numeric_limits<double>::digits10 + 1) << fixed << pi << endl;

cout << setprecision (numeric_limits<double>::digits10 + 1) << scientific << pi << endl;

}

What is count in c language?

count is a function that counts the variable name.

Which operator will be used first in c?

Most likely the function call (yes, it is an operator in C), but of course it is up to you.

How would you write a program that counts the number of lowercase in a character?

I would use a loop like this:

const char *p= str-1;

size_t count= 0;

while (*++p) if (islower (*p)) ++count;

Which rules you must obey when creating websites?

When creating websites, you must adhere to rules related to accessibility, ensuring that all users, including those with disabilities, can navigate and interact with your site. Additionally, you should comply with privacy regulations, such as GDPR or CCPA, to protect user data and inform visitors about how their information is used. It's also important to follow copyright laws by using licensed or original content and to implement best practices for web security to protect against vulnerabilities. Lastly, ensure your site is optimized for different devices and browsers for a consistent user experience.

Can cars do a loop the loop?

I'm guessing that if the car was going fast enough, it could since it's speed and inertia would keep it moving forward. Just think of it as a toy car on a mini stunt track, as long as you push it fast enough, it will go with the track's loop the loop direction.

What is the serial number for adobe audition cs5.5 production premium?

WikiAnswers does not provide serial numbers or product keys for licensed software. Attempting to do that is a violation of the license and is illegal.

How do you write ca cursve j?

you draw a line down, loop up, and dot over the line.

What is the difference between pointer before a variable and pointer after a variable?

I presume you referring to the C pointer syntax where an asterisk operator may be suffixed to a type or prefixed to a variable. The following may help to clarify:

int*p;

int* q;

int *r;

int * s;

All four of these declarations are exactly the same (they are all pointer-to-int variables). Note that the physical position of the asterisk operator makes no difference whatsoever, no matter how much whitespace you use (whitespace is essentially ignored both before and after an operator).

Because the type is pointer-to-int, it usually makes sense to use the second variant to separate the variable's type from its name. However, this doesn't really work when declaring multiple pointer variables of the same type on the same line using the comma operator. Consider the following:

int* p, q, r, s;

While it is natural to assume p, q, r and s are all pointer-to-int types, they are not. The first, p, is the only pointer-to-int type, while all the others are just plain int types. If we really want 4 pointer-to-int types, we need to use the following declaration instead:

int *p, *q, *r, *s;

Which character is used to continue a statement in SQLPlus?

'-' is used to continue a ststement in SQLPlus

For SQL statements and PL/SQL blocks there is no need for continuation character:

SELECT

ename

FROM

emp

;

set serveroutput on

BEGIN

dbms_output.put_line ('Hello, world');

END;

/