No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE]#include <stdio.h> #include <stdlib.h> /*(*void)displayValue(char* );*/ void main() { char* userInput = (char*)malloc(sizeof(userInput); printf("\n\nEnter : "); scanf("%s", &userInput); printf("\n\nEntered : %s\n\n",userInput); } [/CODE] I have got core dump by running this code. Please suggest. |
|
Hi All, Could you kindly help me regarding the usage of array of pointer (1dimension or 2), I mean where we can use it. Regards, IDB |
|
Re:
I have a project and am hung up at the moment. I am supposed to read from a file containing all of the function calls that I need to make. For example: Insert(33) would call the Insert function with an int paramater 33. How can I read this in from … |
|
Re:
Hi I'm a new user of c++ and our professor gave us a homework problem where we have to find the standrad deviation, the min, the max and the avg of an array of numbers, here is what I have so far but now I'm really stuck trying to make … |
|
Hi all, I have tried to write a program which can add two matrix. It is running well....but when I am printing out the resultant matrix it is just showing the address of the resultant elements. For convenience, I have posted the output also. [B]Program:-[/B] [code=cplusplus] #include<iostream.h> int main() { … |