WHOT IS CHAR?
Answers were Sorted based on User's Feedback
Answer / himaja
n C language, strings are stored in an array of char type along with the null terminating character "\0" at the end. In other words to create a string in C you create an array of chars and set each element in the array to a char value that makes up the string. When sizing the string array you need to add plus one to the actual size of the string to make space for the null terminating character, "\0"
Syntax to declare a string in C:
Sample Code
char fname[4];
Is This Answer Correct ? | 4 Yes | 2 No |
Explain what is the difference between far and near ?
how many times of error occur in C
Why c is called free form language?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"
What is null in c?
Why is c used in embedded systems?
do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.
wat is the meaning of c?
A woman had somany gloves and hats 22 red,34 blue, 45 white...there was power cut and she took a glove and how many gloves shud she take so that she gets a pair of glove fr each color??
To what value do nonglobal variables default? 1) auto 2) register 3) static
Explain how can you restore a redirected standard stream?