Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
#include <stdio.h>
int main()
{
char m[6];
char x[6];
scanf("%s %s",&m,&x);
printf("Hi, My name is E.umamaheswar %s %s\n",m,x);
printf("Nice to see you \n\t\t Let me do my best \n\t\t\t Thankyou ");
}
#include <stdio.h>
int main (void)
{
short int i=1, a=0;
while ( i >= 0 )
{
a = a + 1;
i = i + 1;
}
printf ("El valor maximo positivo es %d – valor siguiente al valor maximo %d\n", a, i);
return 0;
}
#include <stdio.h>
#include <time.h>
/* function to generate and return random numbers. */
int * getRandom( ) {
static int r[10];
srand( (unsigned)time( NULL ) );
for ( int i = 0; i < 10; ++i) {
r[i] = rand();
printf("%d\n", r[i] );
}
return r;
}
/* main function to call above defined function */
int main () {
int* p = getRandom();
for (int i = 0; i < 10; i++ ) {
printf("*(p + [%d]) : %d\n", i, *(p + i) );
}
return 0;
}
#include <stdio.h>
int main () {
int var=3000;
int *ptr;
int **pptr;
ptr=&var
/* take the address of var */
ptr = &var;
/* take the address of ptr using address of operator & */
pptr = &ptr;
/* take the value using pptr */
printf("Value of var = %d\n", var );
printf("Value available at *ptr = %d\n", *ptr );
printf("Value available at **pptr = %d\n", **pptr);
return 0;
}