C is a general-purpose computer programming language used for operating systems, games and other high performance work.

learn more… | top users | synonyms

-2
votes
0answers
71 views

How can I improve the following code in terms of faster execution? [migrated]

The problem is described here - Aaah!. My source code for the problem is below. I one of the fast running codes, but not the best. What changes can I make so as to improve the efficiency of the code. ...
-3
votes
2answers
824 views

Why aren't there modern C IDEs? [closed]

Why weren't the features present in modern IDEs for Java & C# (Intellij IDEA, Visual Studio, eclipse) developed in (earlier) IDEs for C language? I mean I don't know any IDE which has modern ...
-3
votes
4answers
287 views

What are good strategies in C for dealing with pointer errors of this type?

In C, I often come across errors with code like this prio_queue->head[index] = newEntry; Yields a " "Cannot assign Entry** to Entry* " How do you prevent/debug errors of this type, in general? ...
-3
votes
2answers
602 views

I'm having trouble understanding these exercises wording [closed]

Exercise 1-20. Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns. Should n be a ...
-3
votes
1answer
255 views

Should i shift from Testing to Development? [closed]

i have 1.2 yrs of experience in Testing in big MNC company, I have good Programming knowledge in Java (Core,Servlets). I have completed ISTQB certification(Testing) and trying for HP QTP ...
-3
votes
3answers
290 views

More Accurate Random in C [closed]

I have 3 IPs and every IP has a weight, I want to return the IP's according to its weights using the random function. For example if we have 3 IP's X with weight 3 Y with weight 3 and Z with weight ...
-5
votes
2answers
3k views

What would be the prototype of printf?

look at these calls closely: printf("hello, world\n"); printf("%d", 2); printf("%d%g\n", 2, 2.3); we see that printf can accept any type and any number of args. however we know that functions in c ...
-5
votes
1answer
130 views

C programming question help please? [closed]

What does the expression S+=i*(2*(i%2)-1) mean while writing a code in C? I know that % 2 mean dividing something and the remainder is our answer but how about the whole thing?
-5
votes
2answers
495 views

what will be the Output of the following code written in “ C”?

#include<stdio.h> void main() { char ***p="hello"; printf("%c",++*p++); } I haven't understand the concept of (*) indirection uses here three times. When i compiled this program then the ...
-5
votes
1answer
255 views

C quiz, puzzles obfuscated C [closed]

I believe that I am a good C programmer. I can solve beginner level Question in google's code jam. I did solve all of the programming examples in KN kings: C programming. Given a problem I can express ...
-5
votes
0answers
34 views

Sorting a Difference-Array, URGENT help [on hold]

I have the following code. What it does is: There is an externally supplied input file which contains certain numbers. The numbers are first all sorted, and then all possible differences ( so always ...
-5
votes
0answers
69 views

How to become malware analyst [closed]

I am willing to be a malware analyst. I am 17 years old and want to be guided. I tried learning x86 assembly form (the art of assembly) but it was complex and I believe that it is very old (I don't ...
-7
votes
0answers
101 views

SOLVED! Error in result: 5^2 = 24 and 10^2 = 99? [on hold]

The compiler is GCC and the program Codelite. Using double or float works!