How will you write a code for accessing the length of an array without assigning it to another variable?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write a program to check prime number in c programming?

0 Answers  


What is a constant and types of constants in c?

0 Answers  


What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these

3 Answers   IBM,


what is difference between overriding and overloading?

1 Answers  


Write a program in C to convert date displayed in gregorian to julian date

0 Answers   HCL, Wipro,






What are the advantages of Macro over function?

1 Answers  


Explain pointers in c programming?

0 Answers  


what is the difference between : func (int list[], ...) or func (int *list , ....) - what is the difference if list is an array and if also if list is a pointer

2 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL

0 Answers  


Concat two string with most overlapped substring has to removeĀ  "abcd"+ "cdef" = "abcdef

6 Answers  


what is the value of b if a=5; b=++a + ++a

31 Answers   Infosys, TCS, Tech Mahindra,


What library is sizeof in c?

0 Answers  


Categories