C :: Print String With Escape Characters
Mar 7, 2013
is there any function to print a string with all the escape characters in it?
For example, instead of printing:
This is a string.
It would print:
This is a string.
Or in Windows:
This is a string.
I know that you can debug the code to find the variable contents, but is there any way to accomplish this with some standard library function?
View 6 Replies
Mar 20, 2014
so my question is i want to print characters,no string just an array of characters,i do this but it s not working,maybe i have to put the '' at the end?
Code:
int main() {
int i;
char ch[5];
for(i = 0; i < 5; i++) {
scanf("%c",&ch[i]);
[Code]...
View 6 Replies
View Related
Jul 6, 2014
Im supposed to find the common characters between two string characters, assuming that the user wont input duplicate letters like ddog. When I run my code I get an output of a question mark upside down. Here is my code with comments on what each part is supposed to do
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char str1[20], str2[20],remp = '