15,551 Topics
| |
i want to know why the runtime error is coming in this code????? #include<stdio.h> #include<conio.h> #include<string.h> int main() { char *a,*b; scanf("%s",a); printf("%s",a); return 0; } there was no error when a declared first pointer i.e. a but as soon as i declared the 2nd pointer(b) i am getting a … | |
Given set of DNA sequences that all may be presented as xiwiyi, where x, y are unrelated random sequences, |x| & |y| < 5, and all wi are of the same but unknown length and are pretty similar how can i Propose and Implement SA algorithm that finds and describes … | |
hey friends i need help once again... i need to know that how to accessing a structure in another function using pointers.i mean when we returning a pointer to the main function we have have the address of the structure.how to use that address to access the structure..pls guys help … | |
Hello was wondering if anyone could help me with this code. I am writing it for exercise 1-13 in the book "The C Programing Language". I am tring to get an array of word lengths. When I compile it i get the warning multi-character character constant. Also the code doesn't … | |
Hi, I have a third party dll file and i want to call and to run that dll file using c program. Could anyone explain how to do this? | |
Please help I'm trying to write a program in C using nested loops which has an output of 1-8 (newline) 2-9 (newline) 3-10 (newline) 4-11(newline) 5-12. I wrote a program but I know it has to be a simplier way and I don't think I used nested loops correctly because … | |
Hi, I'm trying to synchronize two processes but I get a deadlock that I can't manage to solve. To be more specific, my program has to do the following: 1. Parent creates a process and waits using sigsuspend. 2. Child creates a process. 3. Grandchild performs an execvp and gets … | |
i am try to create a program that prints the numerical value of EOF... any ideas for the function get the value of EOF using the ASCII table???? | |
#how to parse log files using structures or enum# | |
How can I use the flood fill algorithm in practice? How can I implement it? | |
how to use file operations using C like fopen,fclose,fread,fwrite,fseek,delete,modifying. | |
can anyone tell me whether we can use const variables for case ...eg I wrote the following code: const int i=2; int j=0; switch(1) { case i:printf("hii"); } now ...this snippet is running properly in turbo c but not in dev cpp... likewise if we use this const variable as … | |
I have to display the message only for a specific time. After that it should be erased from the display. how to do this program in c. | |
Hey, I'm very frustrated about this activity that had been given by my teacher. He asked me to create a program like calendar but he only need a one month portion of the program, I don't even know how to start. He told me that I must have to use … | |
i kind of need to extract data from a code.txt which continues 0100000000001000000000000000000001100010011001 0100000000001000000000000000000001000000000000 0100000000001000000000000000000000000010001001 0100000000001000000000000000000000000001001001 0100000000001000000000000000000100100011001001 0100000000001000000000000000000000000000001001 0100000000001000000000000000000010100010101001 0100000000001000000000000000000010100001101001 0100000000001000000000000000000110100011101001 0100000000001000000000000000000011000000110010 0100000000001000000000000000000011110010111101 my main idea is to extract the number of ones in from each row ,each row = pulses converted from interrupt so as to compare with the … | |
| hi, Actually , I want to ask that what is the exact use of bit fields? I have searched a lot and get one thing that they are used for saving space. But, on the other hand, I read that bits are "padded" to increase the efficieny of compiler to … |
int a=-3,b=2,c=0,d; d=++a&&++b||++c; printf("a=%d,b=%d,c=%d,d=%d",a,b,c,d); why value of 'c' is not incremented in output? | |
I'm having a little problem regarding this log-in program. #include<stdio> #include<conio> #define p printf #define s scanf main() { char pass[20]; char user[20]; clrscr(); p("\nEnter your username: "); s("%s", user); p("\n\nEnter your password: "); s("%s", pass); if(user=="abel" && pass=="pass") p("\nW E L C O M E !!"); else p("\nINVALID INFORMATION!!"); … | |
Dear All, My problem is that exactly every second I need to call a particular function to do some sql querying. So after reading I found that the latest api is timer_create. Below is a skeleton. Is this skeleton a right one to move forward? Thank you. [CODE]#include <stdio.h> #include … | |
#include <stdio.h> #include <stdlib.h> void main() { int n,i,p; printf("enter the no: "); scanf("%d",n); for(i=0;i<n;i++) { p=i*i if(p==n) { scanf("the square root of %d is %d",n,i); } } } its not working error at if(p==n) | |
Can any 1 plz help me in making out sorting techniques using graphics i.e., moving of sorting elements in graphics | |
hi i need to get a program done that reads a series of numbers and operations from a file using in order traversal to build a tree from the file data and evaluate the data in post order by traversing the tree while modifying a stack. here is what i … | |
| hi.. #define loop() for(;b<c;b++) #define print(a) printf("%d ",a); int main() { ............ ........... ............ .............. int i=0,j=0; loop(i,15) { loop(j,15) { print(z[l][m]) } printf("\n"); } } This code print some integers , but isn't printing all in the desired way. But, when I change the #define statement in this way, … |
well, i want to create the classic "snake game" in pure c language. how to do it. should i use graphics.h or "NCurses" library. what new and cool features can i add in my game. can i add a "Background " music and any cool graphics. what new feature can … | |
if we print a float using %d garbage value is printed....but if we scan a float value using %d & int...the value gets truncated...What is the reason behind it... | |
When is the garbage colletor called in c...Like in the following code int main() { int *i; int *fun(); i=fun(); printf("%d\n",*i); printf("%d\n",*i); } int *fun() { int k=12; return(&k); } the address being returned is of a variable that is no longer available....but printf statement prints 12 first time and … | |
how are float values exactly represented in memory...... | |
#include <stdio.h> #include <stdlib.h> main() { char a[30]; int i,j,n,temp; printf("enter the limit: "); scanf("%d",n); printf("enter the string: "); for(i=0;i<n;i++) { scanf("%s",a[i]); } for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(strlen(a[i])>strlen(a[j])) { temp=a[j]; a[i]=a[j]; a[j]=a[i]; } } } for(i=0;i<n;i++) { printf("%d",a[i]); } } compiler stops working here when executing the program but 0 … | |
char str[]="S\065AB"; printf("\n%d", sizeof(str)); explain the output. i am getting 5. |
The End.