can we declare a function in side the structure?

Answers were Sorted based on User's Feedback



can we declare a function in side the structure?..

Answer / savita

It can be possible in C++, but not in C.

Is This Answer Correct ?    4 Yes 3 No

can we declare a function in side the structure?..

Answer / guest

by using the loop

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

0 Answers  


What is a method in c?

0 Answers  


What are control structures? What are the different types?

0 Answers  


write a progam to compare the string using switch case?

1 Answers  


what is recursion in C

0 Answers   Cap Gemini,






What is the use of gets and puts?

0 Answers  


When should the const modifier be used?

0 Answers  


write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)

1 Answers   Bosch, College School Exams Tests,


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

0 Answers  


Why is %d used in c?

0 Answers  


Compare interpreters and compilers.

0 Answers  


When should the register modifier be used? Does it really help?

0 Answers  


Categories