What are identifiers in c?



What are identifiers in c?..

Answer / Vinay Kumar Sahu

Identifiers are names used to identify variables, functions, constants, and labels. They consist of letters, digits, underscores, and the at sign (@), but cannot start with a digit.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is wrong with this initialization?

1 Answers  


Is c still used in 2019?

1 Answers  


write a program to print sum of each row of a 2D array.

4 Answers  


How do I access command-line arguments?

2 Answers   Bosch, Wipro,


WHAT IS MEANT BY LIFE?

2 Answers  


what is the function of .h in #include<stdio.h> in c ?

23 Answers   HCL, IBM, Wipro,


I need testPalindrome and removeSpace #include <stdio.h> #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, &copyCount); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

1 Answers  


Write a program to generate prime factors of a given integer?

2 Answers  


What is the method to save data in stack data structure type?

1 Answers  


Is python a c language?

1 Answers  


9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?

4 Answers   L&T,


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1 Answers  


Categories