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

Could anyone mail you the C program for COS and sin series. Here the answer is not working?

Sorry, but no. The WikiAnswers philosophy is to share questions and answers with the community at large. It would not make sense to eMail answers to single entities. We also do not support specific identifying information in questions or answers, so the alternate question that contained an eMail address has been deleted.

Darwin refers to and c what does and c mean?

'Darwin' can mean different things, and so does 'C'.

Can an array of pointers to strings be used to collect strings from the keyboard?

Yes, u can do so. But you need to allocate memory to it. For exampe if you declare it like

char *myarr[4];

It is an uninitlized array of pointers. If you use it direct. You will get error.

You need to allocate memory to it. And then you can use it.

Here is the code

char *ab[4];

for (int j=0; j<3; j++)

ab[j]=(char *) malloc(10);

for (int j=0; j<3; j++)

scanf("%s", ab[j]);

for (int j=0; j<3; j++)

printf("%s\n", ab[j]);

Hope that helps

What is prefix expression?

Example:

prefix: * 2 + 3 4

infix: 2 * (3+4)

postfix: 2 3 4 + *

How matrices can be represented using two dimensional array?

You've pretty much answered your own question because a two-dimensional array is a matrix. Indeed, all multi-dimensional arrays are matrices.

When we create a matrix, we generally know what type of data will be stored in the matrix, how many dimensions it will have and how many elements each dimension will have, thus an array is the ideal container to represent a matrix. It provides the most compact method of storing homogeneous data, provides efficient constant-time random access to the data and introduces the least amount of abstraction into the representation.

Most languages do not provide a built-in matrix type, however this is simply because there is no one matrix type that would suit every possible application. However, all languages do provide a built-in array mechanism which can be used as the basis for any matrix type which is both simple to create and easy to maintain.

How do DriveSpy specify file headers?

The file header section conatins the hexidecimal number values for many knownfile types. These hexidecimal numbers are the header data contained in the first several bytesof all specialized data files, such as Microsoft word documents or excel spreadsheets and any associated templates. The file header uniquely identifies the file type.

You can use the file header information in Drivespy to search for specific files that might have had their extensions changed.

Write a c program to remove a specified node from a given doubly linked list and insert it at the end of the list?

#include<stdio.h>

#include<stdlib.h>

#define NULL 0

struct info

{

int info;

struct info *next;

struct info *prev;

};

struct info *start,*end;

void main()

{

struct info *ptr;

if(start==NULL)

{

printf("linklist is empty");

}

else

{

ptr=(struct info *)malloc(sizeof(struct info));

ptr=start;

if(start==end)

{

start=NULL;

end=NULL;

}

else

{

start=start->next;

start->prev=NULL;

}

free(ptr);

}

}

Write a program to concate the string without using strconcat function?

If you don't need to preserve the first string you could just iterate over the second string and copy each character onto the end of the first string, then return that

If you have seen how to use function notation to show that one quantity depends on another The SALARY function is an example?

This is not a question; it is not even a complete sentance. Please ask again using words that indicate what you want to know. Also, ensure you put it in the correct category, so you can get a meaningful answer.

What is run time?

"run time" is the opposite of "compile time". It refers to the time when the program is actually running.

What is the programming language used for e-banking?

VB.NET is used for e-banking.It is the language in which all the options are used just by tool box that is at the right hand side of the window.

This question is like asking "what brand of wrench is used to make cars?". There are thousands of different e-banking sites and connections, and they use practically all languages ever designed to run at least one of those possible e-banking places.

Can you modify the bubble sort algorithm to search to sort an array of characters instead of array of integers?

The bubble sort algorithm can be applied to an array of characters. Every character can be translated to an integer equivalent via the ascii table

What is typedef declaration?

The typedef keyword allows the programmer to create new names for types such as int or, more commonly in C++, templated types--it literally stands for "type definition". Typedefs can be used both to provide more clarity to your code and to make it easier to make changes to the underlying data types that you use.

Which type of programming error leads to garbage stink value in a c plus plus program?

The most common error in C/C++ is a buffer overrun. Even if no problems arise through normal use, hackers can exploit the overrun to inject their code into yours. While this can highlight the problem, not all hackers have good intentions...

Another common error is to assign instead of compare a value, due to the similarity between the operators. The compiler can't always see the problem and replicating the problem at runtime may not be obvious.

if( x = y) // should be x == y

{

// always executes

}

else

{

// never executes

}

Structural differences between marchantia and dryopteris?

Both Dryopteris sp. and Marchantia sp. live in damp areas.Their spores are produced by meiosis.