- C Linux Code for user defined string routines strcmp strcpy strcat strrev strstr strlen
- C Linux Code for multi threaded socket client/Server file sharing ftp
- C Linux Code to count number of times given word repeated in a file
- C code/program for linked list, tree and other data structure
- Pointer to Array of Pointers in C
- C Code for sorting linked list elements nodes
- C Linux Code for replacing a word with another word in a file
- C Linux Code for grepping pattern and replacing with other word
- Array of Pointers to integer in C
- C Linux Code for multi threaded socket chat
You may Like to visit.
How to Program in CPP / C++ and C in Linux
20140108
Array and Pointers in C FAQ in Interviews 2014
20130511
How to prepare C++/CPP/C for interview
Frequently asked C++ questions in interviews:
How to compare two strings using pointer without strcmp
How to copy a string without using strcp with pointer
How to find the length of a string without using library function strlen
How to reverse a string using pointer or array in cpp without using strrev library function
CPP program for concatenating two strings without using inbuilt library function strcat
How to search a substring in C++/Cpp without using library function strstr
How to use make file in CPP C+++ C
How to implement msgq message queue in CPP C C++
How to use callback function pointer in cpp/C/C++
How to use malloc for 2d array dynamic memory allocation
How to use new to allocate memory for 3d array in CPP C++
How to learn stack and flow of function call and control in cpp
How to learn recursive function call in cpp/C++/C
How to distinguish between call by value, call by reference, call by address
How to write cpp program for Circular Queue using Array
How to write cpp program for Circular Queue using Linked List
How to write cpp program for BST Binary Search Tree
How to write cpp program to reverse a linked list
How to write sorted linked list program in cpp with class
How to use template in cpp
Why to use explicit keyword in C++
How to use new and delete in C++
Getter and Setter Methods in C++
C++ Program to Add Two Numbers using Class
C++ Program for Fibonacci series
Simple Program for malloc in C
Is it necessary to accept an object by reference in copy constructor?
Multiplication of two numbers using BITWISE operators
New Features in ANSI C++ Standard
Bitwise operation for division
How to pass a object and return a object in C++/Cpp
How to acces private member function in C++/CPP
Why destructor should be virtual in C++ ?
How to use tricky while loop in CPP,C++,C
How to use for loop in C++ CPP C
Program in C++ to learn virtual function
How to use Virtual function C++
- Program to create a table in C
20130509
How to compare two strings using pointer without strcmp
/*C++/CPP/C program to
compare two strings without using library function strcmp*/
#include<stdio.h>
#include<string.h>
int strCmp(char *p1,
char *p2);
int main()
{
char arr1[20];
printf("Enter a
String:\n");
scanf("%s",&arr1);
char arr2[20];
printf("Enter a
String:\n");
scanf("%s",&arr2);
printf("You
entered:%s and %s\n",arr1,arr2);
20130505
How to copy a string without using strcp with pointer
/*How to copy a string without using library function strcpy.
How to use pointer/array to copy a string/sentence. C++/CPP/C program/code to copy a string/word/sentence without using inbuilt function strcpy.How copy a string without using library function strlen. cpp program to copy a string using pointer.cpp program to copy a string without using library function strcpy*/
How to use pointer/array to copy a string/sentence. C++/CPP/C program/code to copy a string/word/sentence without using inbuilt function strcpy.How copy a string without using library function strlen. cpp program to copy a string using pointer.cpp program to copy a string without using library function strcpy*/
#include<stdio.h>
#include<string.h>
void strCpy(char
*p2,char *p1);
int main()
{
char arr1[20];
char arr2[20];
printf("Enter a
String:\n");
scanf("%s",&arr1);
strCpy(arr2, arr1);
printf("You
entered and copied:%s\n",arr2);
20130504
How to find the length of a string without using library function strlen
/*How to find length of a string without using library function strstr.
How to use pointer/array to find length of string sentence. C++/CPP/C program/code to find length a string/word/sentence without using inbuilt function strlen.How to find the length of a string without using library function strlen*/
How to use pointer/array to find length of string sentence. C++/CPP/C program/code to find length a string/word/sentence without using inbuilt function strlen.How to find the length of a string without using library function strlen*/
#include<stdio.h>
#include<string.h>
int strLen(char *p);
int main()
{
char arr1[20];
printf("Enter a
String:\n");
scanf("%s",&arr1);
printf("You
entered:%s\n",arr1);
int n;
n=strLen(arr1);
printf("Strlen
of entered string is:%d\n",n);
Subscribe to:
Posts (Atom)