15,551 Topics

Member Avatar for
Member Avatar for devender22

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 …

Member Avatar for Ancient Dragon
0
120
Member Avatar for shsh111

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 …

Member Avatar for Ancient Dragon
0
45
Member Avatar for baby_c

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 …

Member Avatar for Banfa
0
755
Member Avatar for sansai

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 …

Member Avatar for sansai
0
282
Member Avatar for sivavendra

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?

Member Avatar for ireshagun
0
147
Member Avatar for WhYuLoOkIn

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 …

Member Avatar for Namsisi
0
554
Member Avatar for Ard26

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 …

Member Avatar for I_m_rude
0
242
Member Avatar for plike922

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????

Member Avatar for I_m_rude
0
525
Member Avatar for shkr
Member Avatar for kovacsakos

How can I use the flood fill algorithm in practice? How can I implement it?

0
121
Member Avatar for milindchawre

how to use file operations using C like fopen,fclose,fread,fwrite,fseek,delete,modifying.

Member Avatar for Ancient Dragon
0
301
Member Avatar for manishanibhwani

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 …

Member Avatar for deceptikon
0
186
Member Avatar for kodeeswari

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.

Member Avatar for Sokurenko
0
103
Member Avatar for jovannie.pagubo

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 …

Member Avatar for I_m_rude
0
120
Member Avatar for salohcin

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 …

Member Avatar for salohcin
0
176
Member Avatar for I_m_rude

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 …

Member Avatar for deceptikon
0
139
Member Avatar for chixm8_49
Member Avatar for shanki himanshu

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?

Member Avatar for Banfa
0
104
Member Avatar for abelingaw

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!!"); …

Member Avatar for WaltP
0
146
Member Avatar for newbie14

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 …

Member Avatar for newbie14
1
2K
Member Avatar for rithish

#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)

Member Avatar for rubberman
0
365
Member Avatar for pavanprinceg

Can any 1 plz help me in making out sorting techniques using graphics i.e., moving of sorting elements in graphics

Member Avatar for asrockw7
0
101
Member Avatar for reyesg

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 …

Member Avatar for reyesg
0
113
Member Avatar for I_m_rude

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, …

Member Avatar for I_m_rude
0
208
Member Avatar for techy23

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 …

Member Avatar for WaltP
0
690
Member Avatar for manishanibhwani

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...

Member Avatar for deceptikon
0
151
Member Avatar for manishanibhwani

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 …

Member Avatar for manishanibhwani
0
104
Member Avatar for manishanibhwani
Member Avatar for sepp2k
0
113
Member Avatar for rithish

#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 …

Member Avatar for rithish
0
2K
Member Avatar for shanki himanshu

char str[]="S\065AB"; printf("\n%d", sizeof(str)); explain the output. i am getting 5.

Member Avatar for Banfa
0
543

The End.