What error you are getting?
Is the 'path' allocated memory by malloc?
Type: Posts; User: ArunS
What error you are getting?
Is the 'path' allocated memory by malloc?
How can you declare a single variable to hold 2-Dimension (Length and Width) value?
Use two different variable to hold the value from user.
Your question is about
What have you tried as a...
Check the value of the 'argc' in main function
Please check with the below
typedef struct myvar* ptr_myvar;
ptr_myvar function();
Please check with below code.
Execute and see what is the value in x.
int x;
scanf("%d", &x);
printf("Integer x = %d, Character x = %c",x,x);
Will your "update_status" function does the same functionality of "invoke_thread_S" function?
I mean "update_status" function also have code to wakes a thread S?
I am very sorry, i'm confused.
What is the value for c and Messages[k][2] in the iteration?
Let me ask one straight question.
Put the K value as per below in the printf statement and let us know...
If you do not want the another file really, then you may use the library functions fseek() and ftell() to find out the number of characters written on the source file.
From your input which you shared,
Check the logic on
1. last line printing.
2. Why there is space instead of $ symbol on second line.
Probably you can use
"%[^\n]%*c"
or
"%[^\n]s"
in scanf format specifier.
This may help you, I am not sure.
while(selection<1||selection>5);
Is it valid as per your requirement?
Instead of
int a[3][3]
try with
int a[4][4]
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
float totalPaid=0.0, r=(0.22/12), B=5000.0, P=0.0;
printf("\nEnter your monthly payment: $");
scanf("%f", &P);
printf("\nAnnual...
replace the while with do and put the while at end of switch with a valid condition checking.
I already try that typecasting, but it doesn't work.
because while in the actual scenario, calling of this the function could seems like,
RegOpenKeyEx(HKEY_LOCAL_MACHINE,...
I just want to open a key in a registry(Windows XP) using RegOpenKeyEx() function which takes the second argument as path of the registry key. The second argument type is LPCTSTR (means pointer to a...
Its an USB device. I have the driver software for that particular device and installed in the PC.
Whenever i connected to PC, its having a entry point in Device Manager.
(By manually, I can go and...
For the first time, user will provide the driver software for their H/W to OS.
But there after, if user connected the device to PC after sometime, our program has to detect, exactly on which port...
May I know, from which API we can find out exactly our hardware is connected on which port?
I know about my H/W vendor ID, so with the help of that I want to know exactly on which port my device is...
You did not use Results[4][3] array which actually has to store all the results.
So whenever your getting the input from user, store it in that particular array and last display it.
What is the exact output do you want?
Have you tried only admin[column] or what exactly did changes on your code?
Post your changed code only and also post the results
what do you mean?
Then what is the purpose of Code Tags?
Announcements - General Programming Boards
First up all, Do not attach any file in this forum. Read the Rules.
I do not know what is the logic behind the below line.
Anyway I found out some small things. Red color means changes, Green Color...