thanks for that...I forgot basic things like storage classes...thanks a lot
Type: Posts; User: linuxlover
thanks for that...I forgot basic things like storage classes...thanks a lot
What is the value of a variable when it is delared
ie.
int x ;
This declaration allocates 2 bytes of memory (not in linux) and we can refer to that memory as a.will it erases the data at that...
So i maywrite scanf("%d%d",&a,b);
here i am not getting any warnings...but same error remains......
scanf("%d%d",&a,&b)
ok..
is scanf("%d%d",&a,*b) correct since b contains
&b[0]
b is an integer array ...am i right?
Unexpected output
#include<stdio.h>
main()
{
int a,b[100];
a=60;
kajjah...
What is its format and what is its return type
Is there any c library function to convert an integer to a string...What is the use of stoi()
Thanks to common Tater...
Because when a=0 b<a is wrong so it comes out of inner loop...when a is 1 ,inner loop will print b =0 in first iteration sice 0<1 ,during second iteration of inner loop b becomes 1 and the condition...
Ok.....my aim is to clarify my mis concepts about pointer to pointer ...In the other way it can be done in a simple manner...But my doubt is that
data type of p is node**
you wrote node *temp =p;...
Thanks for telling me about the de referencing...it worked....Thanks for all suggestions
Is this correct code
void display(node **p)
{
node **temp = p;
while(*temp != NULL)...
What is the problem with my display function....
/*PROGRAM TO IMPLEMENT DIFFERENT OPERATIONS ON LINKED LISTS
*/
#include<stdio.h>
#include<stdlib.h>
#define draw for(i = 0...
Thanks I got the idea...ie *p means value at address hold by p ..p holds address of pointer variable......value at that address is head..and i can also right
*p->num=10;
or
**p.num =10;
am i...
Your syntax is wrong...See this
SQL INSERT INTO Statement
I know how to pass a pointer to a function and manipulate it.....That's not what i needed....I need to know how to pass address of a pointer to a function and manipulate it.....You should not...
just *p != NULL is enough??
why??
I know that ...I have already said that this is a code just to show my problem.....I want to know what is the error in this code...and what is my misconcept about double pointer....The function...
I have a doubt about double pointer....I mean pointer to pointer
Here is my code
#include<stdio.h>
#include<stdlib.h>
struct list
{
int num;
struct list * link;
Hi guys,
I want to know how sound libraries are coded?.ie. what is the basic idea behind accessing sound card using c program.How can we give soundcard a command to play sound??
How to access sound card using a C program???
First suggestion accepted
But why main() should explicitly specified int.If nothing is specified default type is int .Then why....
Change of which variable you mean?????????????
Functions whose...
My problem is this.
First I need to read a single integer type digit from the keyboard.
Then I need to print that digit in character form.ie. if I entered 1 ,I need to get the character...
Is there any equivalents of graphics.h for linux ....No perfect answer got after Goooooooooooogling................