What is the difference between array and structure in c?
Answer / Rahul Pal
An array in C is a collection of elements of the same data type, while a structure can hold variables of different data types. Arrays have a fixed size at compile-time, whereas structures can be used to create custom composite data types with dynamic member names and data types.
| Is This Answer Correct ? | 0 Yes | 0 No |
What does void main return?
using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
write a program to display & create a rational number
Explain bitwise shift operators?
Why c is called free form language?
write a c program to find the roots of a quadratic equation ax2 + bx + c = 0
11 Answers CSC, St Marys, TATA,
Explain the priority queues?
Why c is called top down?
Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.
write a program to print largest number of each row of a 2D array
What is the purpose of macro in C language?