Hello,
I am getting ready for an interview, and am going over some interview questions.
I am looking for a second opinion on one of the questions. Before anyone says this is cheating, I...
hello. im trying to check a string from argv if its within 10 to 30. i tried doing it the way below and it seems dat the comparison doesnt work.
if(atoi(argv[1]) < 10) && atoi(argv[1]) > 3...
i wanted to take screen print /PrntScrn of Graphics programs of C using PrntScrn key on keyboard. i am using Windows XP.
it didnt work. But when i tried same on Windows 98 on another machine ...
I need to learn C
how do I do it?
hi,
i have a string like this:
char *string="this is a string";
is there a way in C, to say, print from the string from "is a str" ...meaning just print from index 5 to 10..etc...
...
I am writing a program which on an Unhandledexception, I want it to re-open itself again. For this I have created an exception filter:
long ProgExceptionFilter(EXCEPTION_POINTERS* p)
{
...
Hello Experts,
There is a requirement to generate 1,00,00,000 unique passwords whose length is 8 and consisting of 4 numerics, 2 capitals and 2 small alphabets. What is the best and optimu...
i am trying to generate random numbers but at times, the numbers are not random..get duplicates i know this means random..
when i put srand(time(NULL)) before the loop, it gets the system t...
I could shoot myself. I should know this. I had this working for some reason and now I don't know
what is going on.
monsters.c:47: error: dereferencing pointer to incomplete type
mons...
Hello,
I need to complete an array based stack, that accepts the Pop function with the following prototype:
int Pop(void **item, char *type)
...
In my .h, I defined:
---------------...
Hello everybody!
I want to do somewhat a mirror effect on the following bit sequence: 0111 1000. This should be mirrored to the following: 0001 1110.
See the code example below. I want b t...
hi, how do u add a node before the header node instead of adding it after the header node?
hi, i realise that when dlist does the calloc, it returns a bad pointer and program will fail at strcpy. someone please tell me wat is wrong here? thanks
How to work with colors in c using curses.h in solaris
Suppose I have the following
(I've chagned the application from my company's domain (Healhtcare) to the good old days of being a student for proprietary reasons :) )
#define MATH 1
#defi...
If I have two threads that have access to an unsigned short i and one thread is running
while(1)
{
i = 1;
i = 256;
}
and another thread is running
while(1)
{
if(i == 2...
Very simple questions :
In c, its a += something
what the equivalent in vb6??
In c, its return(1)
what the equivalent in vb6 , i mean how do you return a value while exiting a function...
hi,
in programming point of view...is it better to use malloc or calloc for characters...
calloc initializes the input to zeros and malloc does not...does it mean that calloc is ineffici...
I wish to write the following line to a file in C.
<style type = "text/css" title = "screen" media="screen, print">
My question is how to I write the double quote character " ? If I do f...
hi,
i have spent hours on this and all i got is this:
dbx: internal error: signal SIGSEGV (no mapping at the fault address)
dbx's coredump will appear in /tmp
Abort - core dumped
...
Hi,
Ever seen this.
In a good working c program, I add 1 variable:
int timervalue;
Only this line of code is added, the variable isn't even used in further code.
compiles ok.
p...
Hi Fellow EE'rs
Im having issues with the following code,
I am trying to read a line from a text file and pass its contents in toan array
I have the following however am stuck on read...
Hi!
I would greatly appreciate all the help i can get with figuring out the output of the following control flow program! Thanks a bunch! :)
#include "csapp.h"
int counter = 1;
int m...
Hi,
I need to write a program to display the months of the year as well as creating a function to display the previous month. If the user inputs FEB than it should display JAN. I tried runn...
hi,
is it good to use ftell. i was reading and there is some problems with ftell such as it contains certain long length..some recommend fgetpos...also it is for mainly binary file...
th...