15,551 Topics

Member Avatar for
Member Avatar for Gaiety

Hello every one, I Request you to kindly provide me the description of Tree and its traversal meothds of using iterative. i tried for all recursive ones but this one i cant get. how to get back to the parents nodes when printing in inorder and post order methods. how …

Member Avatar for Tom Gunn
0
169
Member Avatar for geoffy0404

I am just starting out in C, i am doing this from what i remembered from the class i take and i just cant find whats wrong with this[CODE]#include <stdio.h> int main() { char lol[30] = ("hello everybody"); printf("%c", lol); return 0; }[/CODE] when i compile, i just keep getting …

Member Avatar for geoffy0404
0
76
Member Avatar for mrman208

I was wondering how if possible to get information from the internet and display it. Thanks, Mr. Man

Member Avatar for Salem
0
56
Member Avatar for zhinokin

hi to everyone... i will make a program about parenthesis checking and my prof said that we will not be using a stack for this. will you kindly help me to this.. aside from stack can you help me on what to use.?.

Member Avatar for Salem
0
91
Member Avatar for novice_33

the problem is.. a certain .dat file consists of 3 fields of data..for example...user account, password and username (gibsonML, sweetie33, Mel Gibson). How I will load it and then assign it to hash table. Thanks..

Member Avatar for Salem
0
145
Member Avatar for namasteall2000

Hi - I have a question and I know the answer too but don;t know how to explain my answer - could someone help me in explaining. Consider the two-dimensional array A: int A[][] = new int[100][100]; where A[0][0] is at location 500 in a paged memory system with pages …

Member Avatar for Salem
0
88
Member Avatar for vileoxidation

Hello there, and thank you in advance for helping me with this! I am working on a program for my class, which is supposed to perform multiple functions on a string that the user enters. I have posted the code that was given to us, as well as one of …

Member Avatar for vileoxidation
0
250
Member Avatar for nateuni

I have been bashing away at this for hours and am not making any new ground. I have to find the employee that is closest to the all the average. Originally I thought I would just see how far each value was away from the average (eg ageRemainder = averageAge …

Member Avatar for nateuni
0
82
Member Avatar for adcodingmaster

hi guys can any one tell me the difference in architecture of dual core and core-2-duo processor? which one is better? plz reply to both the questions. thnx

Member Avatar for Salem
0
352
Member Avatar for vanalex

Hello everybody! I want to write a program in c that has to open a file (a c program) and count how many char or double declarations have been made in it, so as to calculate the amount of memory that char and double data types will occupy in memory. …

Member Avatar for Protuberance
0
182
Member Avatar for ivatanako

hi, i know this is a basic question and i have tried searching GOOGLE but it does not solve my problem. I have a array which is declared as [code] int frameScores[]; [/code] but when i tried to get its size after adding elements by using sizeof, i get a …

Member Avatar for Salem
0
225
Member Avatar for edwar

Hi every1, is there some1 how could give a code to sort a text file in c. for example, you write a text in kladblok and you write a code to to sort the text in alphabet. please if there is some1 who knows how to write the code, it'll …

Member Avatar for Ancient Dragon
0
105
Member Avatar for littlewonder

hi, i get an error - 'incompatible types in assignment' for the following code [CODE] #include<stdio.h> int main() { char name[10]; name="Hello"; printf("%s",name); } [/CODE] Any help will be greatly appreciated...

Member Avatar for littlewonder
0
54
Member Avatar for ubi_ct83

i have loaded the string data from file to double array.this is example: const_array[1][]=a1,b1,c3, const_array[2][]=a2,b1,c3, const_array[3][]=a3,b2,c2, const_array[4][]=a2,b3,c1, const_array[5][]=a3,b2,c1, those data need to be compared to this string: append_test_data.this is also an array and it will be changed randomly by d program.the prob is,my prog just compare to the last data …

Member Avatar for ubi_ct83
0
599
Member Avatar for AndrewWood

Hi, Came here to find an answer to a question no one wants to touch. I'm currently doing some work with debugging principles in Windows C and have found a very odd problem when spawning a process. When using CreateProcess with any of the debug flags set on my other …

Member Avatar for IanHannah
0
276
Member Avatar for katwalatapan

Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include …

Member Avatar for Protuberance
0
1K
Member Avatar for vivekarora

Hello Friends, I have a huge program having multiple malloc & free. At the end of my program, I wish to print the memory leak which has occured. There are obviously many solutions to this problem. e.g. Simplest one: 1) When you allocate the memory, keep the allocated memory pointer …

Member Avatar for vivekarora
0
279
Member Avatar for vashek

Hi All, this is my first C code in my professional life. I wanted to write a common function to retrieve file content. I do not know whether below code is upto the mark or not. any Suggestions/modifications/tips are greatly appreciated. [CODE] #include <stdio.h> #include <stdlib.h> /* Function Name: get_file_content …

Member Avatar for wildgoose
0
419
Member Avatar for katwalatapan

Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing …

Member Avatar for ajay.krish123
0
250
Member Avatar for octavia

Hi :) anyone can help me for my problem 1) how to convert 'unsigned char' to 'unsigned int' ... 2) need more idea about casting for embedded c after making some calculation , value from char typed array element are changed some unknown value which can't be handled. Wanna know …

Member Avatar for ithelp
0
155
Member Avatar for pk09
Member Avatar for 9868
-1
123
Member Avatar for littlewonder
Member Avatar for snprime

Hey guys, I a new CS student taking a class on C and I have a question about passing by reference. I have a problem in which I am trying to open a file called reportFile. The problem is that when I try to do this using a function, as …

Member Avatar for snprime
0
130
Member Avatar for ivatanako

this is a java code, i need to convert it into C. [CODE] private void addFrame (int toAdd) { int[ ] frameScores = new int[0]; totalScore = totalScore + toAdd; if (frameScores.length < lastFrameNumber) { int [ ] temp = new int [frameScores.length+1]; for (int k=0; k<frameScores.length; k++) { temp[k] …

Member Avatar for ivatanako
0
156
Member Avatar for pdwivedi

[code=C]#include<stdio.h> struct book { char name[25] ; char author[25] ; int callno ; } ; int main() { struct book b1={ "Let us C", "YPK", 101 } ; printf("name=%s",b1.name); printf("\nname=%s",&b1.name); return 0; } [/code] can someone explain me why i am getting the same output while i am using two …

Member Avatar for Salem
0
86
Member Avatar for Nathan Campos

Hello, Because of my new and the most of the future projects, i'm needing to learn C and use Windows, but because of this, i don't know how to use the Windows API, then i'm asking for an example of using DeleteFile function. Thanks, Nathan Paulino Campos

Member Avatar for marco93
0
127
Member Avatar for anne_lise

hi i am trying to use incbet.c alone . it is presently availabe as library (with its makefile) as given below . i wanted to know all the files used by incbet.c . i dont know details about make file . i tried to to look at GNU tutorial on …

Member Avatar for Salem
0
192
Member Avatar for hoke

Hullo. I would be very nearly eternally grateful if someone would explain how to convert a void pointer's target (eg 0xda9f000) into a string in C. Both my own brain and google have failed me on this one. I can do this in printf using the wonderfully inelegant line: printf("Value:'%p' …

Member Avatar for Nathan Campos
0
6K
Member Avatar for ksan

[LEFT]i have an assignment to make a bus reservation system that will return in main 35 times and increase the ticket number,using function arrays,and looping and can anyone help me ive been doing this assignment for 3 weeks now and i cant do it. [/LEFT]

Member Avatar for MrNoob
0
175
Member Avatar for priyairani00

what will b the coding of a program.. "program to swap two no. using third variable"

Member Avatar for priyairani00
0
88

The End.