Hi meher81,
Whatever Subsonics asked to change in your code I used to change.
Following code with the changes insteadof sizeof(t) I mentioned strlen(t) with string.h header file, for me it's...
Type: Posts; User: rekha_sri
Hi meher81,
Whatever Subsonics asked to change in your code I used to change.
Following code with the changes insteadof sizeof(t) I mentioned strlen(t) with string.h header file, for me it's...
Hi,
Use the following program printing an array elements in an reversing order.
#include<stdio.h>
#include<string.h>
main()
Use the following program for getting the file attributes using stat function.
#include <stdio.h>
#include <sys/stat.h>
struct stat stResult;
main()
Use the following program.It will not get warning.
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include<string.h>
#include<stdlib.h>
printf() function sends output to stdout and fprintf() is used to specify the output stream.
fprintf() we can use this to print into a file.
printf("Hai friends\n"); //This will print...
Hi,
Following program gets the input from the user. If the user didn't give the boy or girl,it will say
Invalid input,Try again! and continue to get another valid input from the user. This...
You asked better way to copy the first two elements from the array1 and three elements from array2 and stored into array3.Following example better way for your requirement.
If you use this program...
Try the below program,you can get the correct output what did you expect.
In this program I have changed the scanf.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i = 0;
Dear Friend,
scanf default separator is space.So that first time it used to get the first name and last name will be overwrite with first name. If you use \n as a separator you will get the...