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

Identifire in c prog?

Identifiers? Names of variables/types/functions, may contain letters a-z, A-Z, digits 0-9, and underscore, but cannot begin with digit.

How do you use the longest Prefix Match algorithm in C programming?

You can use the longest Prefix Match algorithm in C programming by looking up the longest standard Python package match and then converting that from Python into C or C++ to figure out how to create the equivalent.

Put 8 byte size into a 4 byte?

#include <inttypes.h>

int64_t b8;

int32_t b4;

b4 = b8; /* perfectly legal */

What are Roles and Responsibility of Tour operators?

Tour operators are responsible for planning, organizing, and executing travel experiences for clients. Their roles include creating itineraries, managing bookings, coordinating transportation and accommodations, and ensuring compliance with local regulations. They also provide customer support, offer local expertise, and handle any issues that arise during the trip. Ultimately, their goal is to deliver a seamless and enjoyable travel experience for their customers.

Use of double pointer?

A double pointer has two basic meanings. One is ofa pointer to a pointer, where changing the value ofdouble pointer will result in the original pointer being changed. Another is that of a two-dimentional array, such as a matrix, or a list of char* (e.g. in main when you use argv).

In c 431-400 BC what does c mean?

I believe the 'c' means circa, meaning that this date is an estimate and not exact.

When is the nysc batch c orientation?

Yes, in November 2009. The actual date has not been published yet.

If you are considering Ch 7 but do not want to include a newly purchased vehicle are you able to still file?

If you're considering Chapter 7, you probably shouldn't have bought a vehicle, which can be considered as asset and included int he bankruptcy. Last year, the government made it considerably harder to file Chapter 7. You should consult an attorney for legal advice on what to do.

check your state laws but if you are making payments and are not delinquent you are normally allowed to keep transportation vehicles for getting to work. however if it is paid for it will be considered an asset and IRS of your creditors can ask for it to be sold to satisfy your debt.

Function to find the transpose of a sparse matrix?

// transpose for the sparse matrix void main() { clrscr(); int a[10][10],b[10][10]; int m,n,p,q,t,col; int i,j; printf("enter the no of row and columns :\n"); scanf("%d %d",&m,&n); // assigning the value of matrix for(i=1;i<=m;i++) { for(j=1;j<=n;j++) { printf("a[%d][%d]= ",i,j); scanf("%d",&a[i][j]); } } printf("\n\n"); //displaying the matrix printf("\n\nThe matrix is :\n\n"); for(i=1;i<=m;i++) { for(j=1;j<=n;j++) { printf("%d\t",a[i][j]); } printf("\n"); } t=0; printf("\n\nthe non zero value matrix are :\n\n"); for(i=1;i<=m;i++) { for(j=1;j<=n;j++) { // accepting only non zero value if(a[i][j]!=0) { t=t+1; b[t][1]=i; b[t][2]=j; b[t][3]=a[i][j]; } } } printf("a[0 %d %d %d\n",m,n,t); for(i=1;i<=t;i++) { printf("a[%d %d %d %d\n",i,b[i][1],b[i][2],b[i][3]); } a[0][1]=n; a[0][2]=m; a[0][3]=t; int s[10],u[10]; if(t>0) { for(i=1;i<=n;i++) { s[i]=0; } for(i=1;i<=t;i++) { s[b[i][2]]=s[b[i][2]]+1; } u[1]=1; for(i=2;i<=n;i++) { u[i]=u[i-1]+s[i-1]; } for(i=1;i<=t;i++) { j=u[b[i][2]]; a[j][1]=b[i][2]; a[j][2]=b[i][1]; a[j][3]=b[i][3]; u[b[i][2]]=j+1; } } printf("\n\n the fast transpose matrix \n\n"); printf("a[0 %d %d %d\n",n,m,t); for(i=1;i<=t;i++) { printf("a[%d %d %d %d\n",i,a[i][1],a[i][2],a[i][3]); } getch(); }

What is a supervisor call interrupt?

SVC (supervisor-call): A request from the user-program to the kernel (or supervisor), to do something like open a file, allocate memory, create a new process etc.

In x86 platform SVCs are executed via "INT nn" machine instruction, that's what Intel calls 'software interrupt'.

Is the coldstone in the loop still open?

The Coldstone Creamery on Delmar Loop, University City, MO, never opened. There was a sign in the window for more than a year that said it was coming soon and it never came. The sign was eventually taken down.

What is the term given to the memory allocation that takes place during run time rendering the resizing of an Array?

A reallocation. Note that whenever we reallocate an array, we increase the size of the current allocation if there is sufficient free memory beyond the current allocation or we allocate entirely new memory if there isn't. But when we reduce the size of an array, we simply release the redundant memory at the end of the array; we never allocate new memory. However, because the amount of memory being allocated has to either increase or reduce in size, both are termed a reallocation.

What is the purpose of MD5 hash calculation?

MD5 check sum is unique for a file content and is used to check the integrity of the file content. If file is to be transferred using network, recipient can calculate the MD5 hash and check it with the MD5 check sum of sender, if both are same, he can be sure of non-corruption of file in transit.

What is storage class Define storage class with the help of example?

the storage class is define as 10th class and 9th class

and the examples are 10b and 9a

How do you Send arrays to function?

Simply by sending the base address from main() and catching that in a pointer in the pointer.

void main()

{ int a[20];

sort(a);

}

void fun(int *p)

{

}

How do you calculate array of 10 number using array in c?

#inculde<iostream>

using namespace std;

int smallestIndex(int[],int) //function prototype

void main()

{

int arr[10]={2,5,6,9,3,7,1,15,12,10};

int position;

position=smallestIndex(arr,10);

cout<<"the smallestIndex

Is header files necessary?

No, but useful.

Example without stdio.h:

extern int puts (const char *s);

int main (void) { puts ("without"); return 0; }

Example with stdio.h:

#include <stdio.h>

int main (void) { puts ("without"); return 0; }

What is the C.I.A.?

The C.I.A., or Central Intelligence Agency, is a civilian foreign intelligence service of the United States federal government. Its primary mission is to gather, process, and analyze national security information from around the world, particularly related to foreign governments, organizations, and individuals. The agency also engages in covert operations and counterintelligence activities to support U.S. foreign policy and national security objectives. Established in 1947, the C.I.A. operates under the jurisdiction of the Director of National Intelligence.