#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code?
Answer Posted / sheetal
error will occur for l-value as left operand should be
pointer instead of array. Since assignment is always done
to pointer.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is typeof in c?
What does it mean when the linker says that _end is undefined?
Explain the array representation of a binary tree in C.
When should structures be passed by values or by references?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
plz let me know how to become a telecom protocol tester. thank you.
Explain the meaning of keyword 'extern' in a function declaration.
Explain modulus operator.
What is a macro in c preprocessor?
What is a sequential access file?
What is the difference between typedef and #define?
What is the difference between class and object in c?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is string in c language?