15,552 Topics
| |
i have assigned a value directly to a pointer like *ptr=12; and i have used it,no error came.if we assign like this where the pointer points to?explain me? | |
This is just a function in my program. I am getting error in this function. I know it is something to do with the structs. The error points to 'struct BOOK book;' I am trying to print all books for user to see. Library_Management.c: In function ‘viewbooks’: Library_Management.c:217:14: error: storage … | |
I have created lot of c files and i executed them,but i can run the executed files only in terminal.... can we have a direct c code,on clicking the exicuted file it should open its new window and work.... How should i create it,please help me.. | |
Hi guys, 1st year cllege student here. New on C Programming. My program's main unction is that it will display products with fixed cost and a person will just enter numbers and will be multiplied to the fixed cost. The product of those should be displayed correctly but in my … | |
The Question: Write a function main that prompts a user to enter the number of different items that he intends to purchase from a showroom.Your program should read for each item the quantity to purchase and the unit price then finally display total amount to be paid anyone help me … | |
Hi i'm trying to study for c programming course midterm and there are few questions i have no idea why the answer is. could anyone describe why the answer comes out like these? #include <stdio.h> int main(){ int i = 3; if (((i+=3)&&(i++>6))||((++i>8)&&(i+=3))) printf("Yes. i is %d",i); else printf("No. i … | |
I keep getting the error , "control may reach end of non-void function" What am I doing wrong here? I just dont get it right now! I know its something simple and small but I have been here back and forth for about 2 hours wondering what the hell is … | |
I want to add numbers to an array using scanf What did i do wrong? it says expected an expression on the first { in front of i inside the scanf... void addScores(int a[],int *counter){ int i=0; printf("please enter your score.."); scanf_s("%i", a[*c] = {i}); }//end add scores | |
The thing that i don t understand here is how can you put a FUNCTION that hasn t yet evaluated into a integer(will evaluate later but at the moment of the recursion it hasn t) into a int variable? Once n equals 0 the int smallResult will get populated but … | |
Hello guys, how can I solve the following problem: I made a pointer that receives the position found by the function srtstr char * pon; pon = strstr (string1, string2); The problem is now, I need to know the position where the string 2 in string1 within the whole. anyone … | |
This simulator works for: 1. First Come First Serve (FCFS) 2. Round Robin (RROB) 3. Priority (PRIO) 4. Longest Job First (LJF) 5. Shortest Job First (SJF) algorithms. The program is written for gcc linux compiler. In input file a sequence of processes coming to the systems included, where also … | |
hey,today someone asked me one question in my class that what is the fastest way to multiply a number by 7 ? I said yes you can use bit-wise operators. the code which i gave him is : int n=10; // for example n = (n<<3)-n; then he aksed me … | |
Reversal of words in a string. i.e., "Jack is a good boy" into "boy good a is Jack" | |
I want my my program to look just like the one below (as in showing what guess # they are on ):I've been working on this for the past hour or so but I just can't seem, to get it right . Can someone help me? For example i keep … | |
Hopefully I shouldn't need to explain what `gets` is or why it's easily one of the worst possible standard functions you could call in your code. In my personal opinion, the title for "holy shit, never use this function" is a tie between `gets` and `system`. I'll discuss the problem … | |
Hi, I have written a C program in Turbo C to load BITMAP image and now i am trying to send it over serial port. Kindly Help me how to send that image data which i already loaded in memory over serial port using OUTPORTB or BIOSCOM ? [CODE]#include <stdio.h> … | |
I want to write a C code that reads billions of integers from a text file. Each integer is of length 10 digits (e.g. -2311872000). then I build a linked list to store these integers.how could I do that ? | |
Hi members, This is a program i wanted to implement semaphore between parent and child processes which are trying to access a shared variable called counter ... i dont know why it is not getting incremented during the child process !! someone help please !! #include <stdio.h> #include <sys/types.h> #include … | |
Hi i have an assignment to do in C language but i have no idea where to start with....could anyone give me a headstart where i should start?? i dont have much experience in C programming. i was given these information: (a) It was Monday on the 1st of January … | |
Hello! I'm having a rather difficult time because the concepts weren't very much explained in class for complex situations. I'm a bit entangled with the few if-else conditions I have... :( I've been trying hard to crack the case, but I think somebody really needs to see my work. Write … | |
While creating a database..Is the data transfered directly from the user-input into the database or transfered to a buffer and final transfer from buffer to database is done..? Plz answer it.. | |
dennis richie made c language with only 32 keywords all the functions and statements are to be created by the programer. if so wher is the source code of "printf" "scanf" "cin" "cout" ? | |
Ive spent almost 4 hours messing with this code trying to figure out whats wrong...to no avail. I keep getting zero as the total in the displayTripCost function at the bottom, i dont know if i messed up the pointers or what when i called by reference.... Please help!!! //Toni-Ann … | |
There is a prison of health retarded patients in which each patient is allowed to move within the premises. Each of the patient wears a jacket which is embedded with a seven mobile devices wiz; accelerometer with positioning system to check the movement of the prisoner, heart rate calculator to … | |
Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is … | |
Hi guys I'm having major issues with this assignment of mine and I cant even figure out where to get started. Any help would be greatly appriciated. I must write a program that outputs that plays the game Hi Lo with a user until they decide to quit. The program … | |
Dear pals, I installed Turbo c for windows 7 ultimate 64 bit , but it's not user friendly .When it use in full screen the mouse is not working . Any solution for it ? If you know any new C compiler setup let me know. Thanks, Anes | |
Hello people, I have this C programming assignment which I have no time to do as my Uni workload is too large. The assignment should take, if you are an experienced C programmer, no longer then an hour. I am willing to pay $30/£20 for anyone to help me. If … | |
Can anybody help me on how tO create 4 function for uno card game? 1. Create Deck 2.Shuffle deck 3. Valid selection 4. Play | |
Dear Friends, I am looking a small thing , I need a simple code to check the input whether it's prime , if not can enter same repeateddly upto get a proper value . Please provide a simple code snippet and help me Thanks, Anes |
The End.