#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
How do you convert strings to numbers in C?
What is meant by initialization and how we initialize a variable?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What are types of functions?
What is the full form of getch?
Explain what is the purpose of "extern" keyword in a function declaration?
What are logical errors and how does it differ from syntax errors?
Explain a pre-processor and its advantages.
What is getch c?
What is #define used for in c?
How can you increase the size of a dynamically allocated array?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is header file definition?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.