Well actually i am completely new to this topic so fiddling with man pages and google would be fine if i have a certain base on the topic thatswhy i was asking, i would like to kickstart with linux...
Type: Posts; User: Amitesh93
Well actually i am completely new to this topic so fiddling with man pages and google would be fine if i have a certain base on the topic thatswhy i was asking, i would like to kickstart with linux...
Guys i want your help in getting around good tutorials/books to learn how i can make two separate applications/programs communicate with each other? one more thing is this type of communication...
well i do can simplify the if statements if you want for clarity and knoing wat i am doing
well adak its not about simplifying my code using only recursion and solvinh TOH i do kno how to do...
Well i dint catch ur point about strlen and rest about stack operations i am actually also trying itto be recursive . What my motto was to divede TOH operations in 6 conditions nd chek aftr each...
guys i am trying to make the tower of hanoi problems solution using recursion and stacks i did created a logic but there seems some great blunder , while the syntax is correct with no errors but the...
writting explicitly means to write it fully in the code and it not being an implicit declaration.
for(i=0;i<=4;i++) {
scanf("%c%d%",&s[i].name,&s[i].rollno);
...
%c is for char you are scanning an array/string so use %s same for printf plus there is no need for three % symbol in scanf and printf.
i think i was not able to put my question in a proper way , what i asked above was the approach you will use to make a certain screen output stream pointer or any function which will allow us to...
its not os specific question that i am asking lets say i give you a task to make a *stdout type of pointer which gives us an output stream to the scree how are you going to approach it lets say for...
that i got that the file descriptor for output stream is 1 but how is this approached by a system , is it embedded in the os or can i also make an output stream pointer/descriptor.?
Well i was going through the library files of standard input and output file to actually know the process followed for defining the output and input stream , i did got a definition of stdout and...
Actually i am working on my c and also upgrading to c++ but while coding i really dont feel satisfied , as for the texts i read to improve my grasp on these languages i feel a blank hole in my mind...
isn't valgrind for linux only as using code blocks on windows how will i use valgrind?
k!=NULL should be k->next!=NULL then the prog is working fine.
*can you tell me how to check memory leaks can the compiler tell us or we need to self asses the program i do understand the memory...
@pappu on using the abuv edition the program stops working after printing the number(*it crashes)
@laser light hmmm... i'll edit it thanx :)
@all who have helped me the program has been solved perfectly, uploading the final code working like a charm thanks all, the last and prior errors can be clarified by the code.
...
**if i am using != in print i am getting an infinite loop print of my first value entered.
@pappu hmm u r correct dude @laserlight will goto create a kind of error *why to remove malloc.h?
plus this is my current out put *(not able to print the values)
my new code looks like this
#include<stdio.h>#include<strings.h>
#include<stdlib.h>
#include<malloc.h>
struct node
{
int data;
struct node *next;
@pappu i actually corected the == to != operator it was just for testng dat i did but @ line 57 do u want me to use ==
okay got your point jim corrected it by a malloc.
@jim can you explain with an example
okay okay please correct me is *trys not an initialisation for trys as it is for k in the link datatype and how will i initialise an address as trys is actually an address.
@jim
#include<stdio.h>#include<strings.h>
#include<stdlib.h>
#include<malloc.h>
struct node
{
int data;