15,551 Topics
| |
I can't figure out why a gives a value of 0, Can anyone explain? Thanks in advance. The output for this program is 770 include<stdio.h> include<stdlib.h> int a,b; void mystery(){ while(b>0){ int a; a=a+10; b=b-1; } } int main(){ a=7; b=a; printf("%d\n",a); mystery(); printf("%d\n",a); printf("%d\n",b); system("pause") return 0; } | |
please help me choose an title to do a package using **binary tree** or **multiply linked** list data structure.... | |
Alright to add the ability to import files into a phonebook app that I created, but my issue im having is when I just add a counter to loop through the function that pulls the data from the file, it prints out names many different times, in different orders. I … | |
I am very new to programming language and need help urgently. I am running a program which gives me one output file for every 5 min simulation. i have to copy and rename the output file in each step so that they can be used in another program . Any … | |
Hi everyone I'm using stat() function to get the file's attributes , but I don't know how to get the permission of it . So can anyone tell me how to find the permission of the file?? Thanks in advance | |
#include <stdio.h> #include <stdlib.h> int main(void) { double a = 0.0; double b = 0.0; scanf("%lf", &a); printf("\nThe first number is %f", a); getchar(); return EXIT_SUCCESS; } The question is : how can the program continually re-prompt I mean when i enter the number, and then the number i entered … | |
Does anyone know how to write a program that minimizes a finite automata? | |
| Credit card numbers follow certain patterns. A credit card number must have between 13 and 19 digits. It must start with for example: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards So, this here is the code thats identify either a … |
Hi I need some good study material related to it. How can i eject my DVD ROM drive using C coding. similarly, how can i change fan speed, how can i shut down my PC using C coding. I need urgently. | |
Alright. I am making some decent progress here. I am trying to add a toolbar to my basic text editor that I am making using an internet tutorial. Anyways the problem is that I can get the bitmaps to display but they appear to be just that... bitmaps. When I … | |
I apologize for the inconvenience this not a Qt question. I am using a library in my Qt application which is built and generated by lex and yacc compiler. When I am calling first time the function itās working fine, a good file. Next time running a bad file from … | |
Guys I installed "windows Vituual PC" with xp vesion in windows 7 ultimate 64 bit. Now I am not able to install c++ software in it so please tell me how to install turbo c++ in VMplayer plzzzzzzzz full detail . | |
Hello! I have an output problem with a program that I'm writing that takes a user inputed sentence and reverses the words within it. Right now the program compiles and runs without problem, but my output is different than what is intended. specifically, there is an extra newline placed after … | |
| Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards In 1954, Hans Luhn of IBM proposed an algorithm for validating credit … |
My teacher wants me to write a function called double cos(float); to compute the cos of an angle (given in radians) using the Taylor series shown. Your function should find the value of the cos for ANY angle (preferred) or at least angles up to 2 PI (Hint: if you … | |
typedef struct zoz { int age; int mag; int suly; } nevsor_t; int olvas(nevsor_t * pnevsor) { return scanf("%d %d %d", &pnevsor->age, &pnevsor->mag, &pnevsor->suly); } int kiir(nevsor_t nevsor) { return printf("%d year\t%d cm\t%d kg\n", nevsor.age, nevsor.mag, nevsor.suly); } int sort_age(const void *a, const void *b) { struct nevsor_t *ia = … | |
Hello! I have a question that I think might be simple to answer but I haven't found any documentation anywhere to confirm my suspicions. I pasted only the relevant portions of my code below to the question that I'm asking. My program is supposed to multiply two square matrices. The … | |
I need to do the following: input First and Last name Output initials. Output however many letters Input Middle name Output Full initials. then redo the process. input First and Last name Output initials. Output however many letters Input Middle name. Output Full initials. Example: Enter your first and last … | |
#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> int compare(const void * a, const void * b) { return strcmp(a, b); } struct node { char name[51]; int index; }; /* 1.Sort the Array cities (which was copy of A) and Array B2 (which was copy of B). 2.Do binary … | |
**My academic assignmentt ** **Please help me in coding for this assignment** In Linux Ubuntu flavor, write a program in C language to do the following tasks. 1) Use fork ( ) system call to create a child process. 2) Child process should first take student name as input and … | |
Hello. I'm currently trying to split a char in MPLAB IDE, with a C compiler. We're working on a project and the only thing im missing is to split a char on the form: $GPGGA,071112.995,6023.0717,N,00520.1325,E,1,03,08.0,00110.1,M,43.8,M,,*6C Where i need to get out 071112.995,6023.0717 etc. But since I haven't had C before … | |
Im starting kernel programming and need info on the read and writing function to a /proc file. When a program writes to my /proc module, I need to store the contents. When I read the contents of the /proc file, it only return the most recent entry, and not the … | |
i have a doubt in graphs whelther incident matrix and adjacency matrix r they same????? | |
I am trying to solve a problem 3 on project euler. For thoes who donĀ“t know the site, here is the question I am trying to solve: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? ---------------------------------------- … | |
I am new to this but i have downloaded and installed GMP library. The problem is that i have no clue on how to use it! Want to get a number larger than 18*10^18 (unsigned long long) but i dont know how! I am confused with all the mpz and … | |
Hello! I just started learning C a few weeks ago and I'm having a problem with a program I'm writing The program has to prompt the user for a certain number of values defined as NUM_VALUES, and then calculate the mean and standard deviation of the numbers. Here's what I … | |
can anybody plz help me with this assignment plzz plzzzz plzzzzz The purpose of this assignment is to give you practice using loop statements, if ... and if ... else statements, practice writing functions, and program planning and development. You are to write a dice game for 3 players. The … | |
How can i extract information inside the switch statemnt to outside in c langauge.... for eg. i want the information of case 3 to display out the switch statement, then how can i do ? plz respond,,, | |
hey, this is an assignment for school, the total task of the program was to accept a string, print the an uppercase version ofthe same string, count the number of vowels in the string and finally copy the identified vowels to a seconday stringto be printed. i have pretty much … | |
#include <stdio.h> #include <stdlib.h> int main() { char word[50]; int wordLength, i, reverseCount; reverseCount = 0; system( " color F5 " ); printf( "\n How many letters does the word have? : " ); scanf( "%i", &wordLength ); printf( " \n Enter word, letter by letter " ); for( i … |
The End.