hello friends
int main()
{
char*p;
p="23";
printf("%c",p[0]+p[1]);
}
Type: Posts; User: nadji
hello friends
int main()
{
char*p;
p="23";
printf("%c",p[0]+p[1]);
}
[code]#include
#include
main()
{
int i,j;
int array[n][m];
n=6;
m=8;
clrscr();
printf(" Enter i and j : ");
the correct code:
scanf("%d",&array[i][j]);
printf(" Output = %d",array[i][j]);
you can doing this with preview post
using separate text editor it doesn't work and how i can change the line endings to windows style
I'm writing my code using textarea provided by the forum and i'm using linux ( debian)
I'm using google chrome
thank you grumpy but javascript enabled and the problem not solved
thank you AndiPersti but even when i press enter after each line the code appear in the same line
hello, i want to know how to separate the line because when i put my code between the code tag all code appear in the same line like this
int main(){printf("hello world");}
hello friends,when I want to create new socket i use the function socket defined as
int socket ( int domain , int type , int protocol ) ;the problem i found three protocols:
IPPROTO_IP=0and ...
hello, I want to develop a program that interact with the browser using the socket but I can't understand the difference between the two structure
struct sockaddr { }and
struct sockaddr_in { ...
thank you Salem but i don't understand why tab and tab* give the same result (with static two dimensional array)but with dynamic two dimensional array the result is quite different tab it give the...
thank' Matticus but tab is pointer to pointer (tab pointer to *tab) and *tab is pointer to first element of tab (pointer to tab[0][0]) that's true?
hello friends and thank you in advance .I have declared two dimensional array
int tab[2][2]={1,2,3,4};printf("%p",tab);printf("%p",*tab);the question:why tab and *tab give the same output result ...
thank's friends for help i will better in next time
[code]int main(){int i,n;char c;int j,m,d;j=0;char**tab;printf("enter the value of n:\n");scanf("%d",&n);l;tab=(char**)malloc(n*sizeof(char*));for(i=0;i
[tag]
int main(){int i;int*p;i=5;int &r=i;printf("%d",r);}[\tag]friends when i try to compile this code i get this errorerror: expected identifier or ‘(’ before ‘&’ token
struct student{int*f;};
int main(){
struct student*student;
int*p;
int i;
i=9;
p=&i;
student->f=(student->f*)p;
}
suppose the code
#include
#include
#define a printf("\n")
struct teacher{int id;};
struct student{int id;char*name;};
int main(){
I'm very confused the difference between :struct student*stud=(struct student*)&teach;and struct student*stud=(struct student*)teach;