Programming Languages
This is a platform to learn c programming language in easiest way C programming language
09/05/2018
what will be the output of following code
int main()
{
printf("%d",printf("computer"));
return (0);
}
Programming Languages This is a platform to learn c programming language in easiest way
C Program to Read a Line From a File and Display it:-
// For exit() function
int main()
{
char c[1000];
FILE *fptr;
if ((fptr = fopen("program.txt", "r")) == NULL)
{
printf("Error! opening file");
// Program exits if file pointer returns NULL.
exit(1);
}
// reads text until newline
fscanf(fptr,"%[^\n]", c);
printf("Data from the file:\n%s", c);
fclose(fptr);
return 0;
}
What is the output of this code :
void main()
{
int a=10,c,d;
int *p;
p=&a;
c=*++p;
d=++*p;
printf("%d",c);
printf("%d",d);
}
06/12/2013
program to show the no. of vovels n consonants in a string.......
29/11/2013
Program to show the given string is a palindrome or not.....
29/11/2013
program to show the use of string function i.e strcpy,strcat, strlen, strrev....
27/11/2013
program to reverse a string.......
Click here to claim your Sponsored Listing.
Category
Contact the school
Telephone
Website
Address
Delhi
110025